Skip to content

Commit

Permalink
REPL: SyntaxError not detected through instanceof (generated in diffe…
Browse files Browse the repository at this point in the history
…rent toplevel?), replacing with name check.
  • Loading branch information
bard committed Dec 10, 2008
1 parent 0e90a37 commit 85895e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/content/repl.js
Expand Up @@ -614,7 +614,7 @@ var javascriptInteractor = {
repl.print(represent(result));
repl._prompt();
this._inputBuffer = '';
} catch(e if e instanceof SyntaxError) {
} catch(e if e.name == 'SyntaxError') {
// ignore and keep filling the buffer
repl._prompt(repl._name.replace(/./g, '.') + '> ');
} catch(e) {
Expand Down

0 comments on commit 85895e1

Please sign in to comment.