Index: src/debug/mirrors.js |
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js |
index 1ccb001711876ff45372baf9b4d6a1d936baca37..84ea9abb0e06e5d9fca978d54a903358b290688a 100644 |
--- a/src/debug/mirrors.js |
+++ b/src/debug/mirrors.js |
@@ -2342,6 +2342,7 @@ ScriptMirror.prototype.source = function() { |
ScriptMirror.prototype.setSource = function(source) { |
+ if (!IS_STRING(source)) throw MakeError(kDebugger, "Source is not a string"); |
%DebugSetScriptSource(this.script_, source); |
}; |