Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 6735ff454933f0933f4b3a3b15e4b035625be565..903d21a351c2fdbe5f2fa5b44ad4046eb0ec5fe5 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -483,7 +483,7 @@ Handle<JSFunction> Genesis::CreateEmptyFunction(Isolate* isolate) { |
// 262 15.3.4. |
Handle<String> symbol = factory->LookupAsciiSymbol("Empty"); |
Handle<JSFunction> empty_function = |
- factory->NewFunctionWithoutPrototype(symbol, kNonStrictMode); |
+ factory->NewFunctionWithoutPrototype(symbol, CLASSIC_MODE); |
// --- E m p t y --- |
Handle<Code> code = |
@@ -572,7 +572,7 @@ Handle<JSFunction> Genesis::GetThrowTypeErrorFunction() { |
if (throw_type_error_function.is_null()) { |
Handle<String> name = factory()->LookupAsciiSymbol("ThrowTypeError"); |
throw_type_error_function = |
- factory()->NewFunctionWithoutPrototype(name, kNonStrictMode); |
+ factory()->NewFunctionWithoutPrototype(name, CLASSIC_MODE); |
Handle<Code> code(isolate()->builtins()->builtin( |
Builtins::kStrictModePoisonPill)); |
throw_type_error_function->set_map( |