Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 893f78810ff50b8b81013b47ee63a842237290b0..a59de17f8e5019c174d4c334caf535af51af444a 100755 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -508,10 +508,7 @@ Handle<SharedFunctionInfo> Compiler::Compile(Handle<String> source, |
info.MarkAsGlobal(); |
info.SetExtension(extension); |
info.SetPreParseData(pre_data); |
- if (natives == NATIVES_CODE) { |
- info.MarkAsAllowingNativesSyntax(); |
- info.MarkAsNative(); |
- } |
+ if (natives == NATIVES_CODE) info.MarkAsAllowingNativesSyntax(); |
result = MakeFunctionInfo(&info); |
if (extension == NULL && !result.is_null()) { |
compilation_cache->PutScript(source, result); |
@@ -680,7 +677,6 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(FunctionLiteral* literal, |
info.SetFunction(literal); |
info.SetScope(literal->scope()); |
if (literal->scope()->is_strict_mode()) info.MarkAsStrictMode(); |
- if (script->type()->value() == Script::TYPE_NATIVE) info.MarkAsNative(); |
LiveEditFunctionTracker live_edit_tracker(info.isolate(), literal); |
// Determine if the function can be lazily compiled. This is necessary to |