projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
446beeb
)
hack to display syntax errors. FIXME
author
Ryan Dahl
<ry@tinyclouds.org>
Tue, 23 Nov 2010 01:55:04 +0000
(17:55 -0800)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 23 Nov 2010 01:55:04 +0000
(17:55 -0800)
src/node_script.cc
patch
|
blob
|
history
diff --git
a/src/node_script.cc
b/src/node_script.cc
index 167653fdee46483dfb24d6deef7abbbe52e5496d..9cae7483f308bd3d824334943de29cc278a3206f 100644
(file)
--- a/
src/node_script.cc
+++ b/
src/node_script.cc
@@
-3,6
+3,7
@@
#include <assert.h>
+
using namespace v8;
using namespace node;
@@
-233,6
+234,8
@@
template <node::Script::EvalInputFlags iFlag,
script = oFlag == returnResult ? v8::Script::Compile(code, filename)
: v8::Script::New(code, filename);
if (script.IsEmpty()) {
+ // FIXME HACK TO DISPLAY SYNTAX ERRORS.
+ FatalException(try_catch);
// Hack because I can't get a proper stacktrace on SyntaxError
return try_catch.ReThrow();
}