| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 705555ffb68593be4fa4983b54f2f003849d01f9..1b8abf0dc932cc44d09dfda4b80a855187b0e02f 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -4117,10 +4117,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetProperty) {
|
| }
|
|
|
|
|
| -// Set the ES5 native flag on the function.
|
| +// Set the native flag on the function.
|
| // This is used to decide if we should transform null and undefined
|
| // into the global object when doing call and apply.
|
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_SetES5Flag) {
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_SetNativeFlag) {
|
| NoHandleAllocation ha;
|
| RUNTIME_ASSERT(args.length() == 1);
|
|
|
| @@ -4128,7 +4128,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetES5Flag) {
|
|
|
| if (object->IsJSFunction()) {
|
| JSFunction* func = JSFunction::cast(*object);
|
| - func->shared()->set_es5_native(true);
|
| + func->shared()->set_native(true);
|
| }
|
| return isolate->heap()->undefined_value();
|
| }
|
|
|