Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 354542d56e3f44ff14420659726a56a493499aee..9349ad159bcec998b0adc04d0a43c9deb0e85f56 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1471,6 +1471,9 @@ Handle<SharedFunctionInfo> Compiler::CompileScript( |
if (natives == NATIVES_CODE) { |
script->set_type(Script::TYPE_NATIVE); |
script->set_hide_source(true); |
+ } else if (natives == EXTENSION_CODE) { |
+ script->set_type(Script::TYPE_EXTENSION); |
+ script->set_hide_source(true); |
} |
if (!script_name.is_null()) { |
script->set_name(*script_name); |