diff options
Diffstat (limited to 'V8Binding/v8/src/api.cc')
-rw-r--r-- | V8Binding/v8/src/api.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/V8Binding/v8/src/api.cc b/V8Binding/v8/src/api.cc index b9e0cec..145fa9d 100644 --- a/V8Binding/v8/src/api.cc +++ b/V8Binding/v8/src/api.cc @@ -1085,8 +1085,9 @@ Local<Script> Script::Compile(v8::Handle<String> source, // handle it if it turns out not to be in release mode. ASSERT(pre_data == NULL || pre_data->SanityCheck()); // If the pre-data isn't sane we simply ignore it - if (pre_data != NULL && !pre_data->SanityCheck()) + if (pre_data != NULL && !pre_data->SanityCheck()) { pre_data = NULL; + } i::Handle<i::JSFunction> boilerplate = i::Compiler::Compile(str, name_obj, line_offset, |