Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 41b5fa75fbb3d0bbfe971d54c26359d62ee5a60a..246c17fae4815db05505eaac748eb13cb123eb1d 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -249,10 +249,13 @@ Local<Script> Shell::CompileString( |
DCHECK(false); // A new compile option? |
} |
if (data == NULL) compile_options = ScriptCompiler::kNoCompileOptions; |
- return source_type == SCRIPT |
- ? ScriptCompiler::Compile(isolate, &cached_source, compile_options) |
- : ScriptCompiler::CompileModule(isolate, &cached_source, |
- compile_options); |
+ Local<Script> result = |
+ source_type == SCRIPT |
+ ? ScriptCompiler::Compile(isolate, &cached_source, compile_options) |
+ : ScriptCompiler::CompileModule(isolate, &cached_source, |
+ compile_options); |
+ CHECK(data == NULL || !data->rejected); |
+ return result; |
} |