Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 6bce5d3a6a368d1a47b238944dd1b68a2731ad25..eae6b39beb886715037f8f743ec8beaf0a1b3bda 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1248,7 +1248,7 @@ Handle<JSFunction> Factory::NewFunctionWithPrototype(Handle<String> name, |
Handle<JSFunction> Factory::NewFunctionWithoutPrototype(Handle<String> name, |
Handle<Code> code) { |
Handle<JSFunction> function = NewFunctionWithoutPrototype(name, |
- CLASSIC_MODE); |
+ SLOPPY_MODE); |
function->shared()->set_code(*code); |
function->set_code(*code); |
ASSERT(!function->has_initial_map()); |
@@ -1641,7 +1641,7 @@ Handle<JSFunction> Factory::NewFunctionWithoutPrototypeHelper( |
Handle<String> name, |
LanguageMode language_mode) { |
Handle<SharedFunctionInfo> function_share = NewSharedFunctionInfo(name); |
- Handle<Map> map = (language_mode == CLASSIC_MODE) |
+ Handle<Map> map = (language_mode == SLOPPY_MODE) |
? isolate()->function_without_prototype_map() |
: isolate()->strict_mode_function_without_prototype_map(); |
CALL_HEAP_FUNCTION(isolate(), |