google/blockly — pull request #27 by BrianGeppert (2014-12-08 01:22:07+00:00)
Title: Don't crash on prompt cancel.

If the user hits "Cancel" then `window.prompt()` will return `null`. As-is, the code crashes when that happens (trying to call `null.replace(...)`).