Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 943dbbae56567a93cb82c2d244be68b1990a5bc2..56b36ac1e101e76717da26b53abb07044a38d773 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1813,16 +1813,16 @@ Local<Script> Script::New(v8::Handle<String> source, |
pre_data_impl = NULL; |
} |
i::Handle<i::SharedFunctionInfo> result = |
- i::Compiler::Compile(str, |
- name_obj, |
- line_offset, |
- column_offset, |
- is_shared_cross_origin, |
- isolate->global_context(), |
- NULL, |
- pre_data_impl, |
- Utils::OpenHandle(*script_data, true), |
- i::NOT_NATIVES_CODE); |
+ i::Compiler::CompileScript(str, |
+ name_obj, |
+ line_offset, |
+ column_offset, |
+ is_shared_cross_origin, |
+ isolate->global_context(), |
+ NULL, |
+ pre_data_impl, |
+ Utils::OpenHandle(*script_data, true), |
+ i::NOT_NATIVES_CODE); |
has_pending_exception = result.is_null(); |
EXCEPTION_BAILOUT_CHECK(isolate, Local<Script>()); |
raw_result = *result; |