| Index: src/runtime/runtime-scopes.cc
|
| diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc
|
| index d85f21b4a1c8d8300fd125c64876cbb10cd0aa4e..ecbe5cd17d953a7a13c667674425704100ce2e68 100644
|
| --- a/src/runtime/runtime-scopes.cc
|
| +++ b/src/runtime/runtime-scopes.cc
|
| @@ -415,7 +415,7 @@ template <typename T>
|
| Handle<JSObject> NewSloppyArguments(Isolate* isolate, Handle<JSFunction> callee,
|
| T parameters, int argument_count) {
|
| CHECK(!IsSubclassConstructor(callee->shared()->kind()));
|
| - DCHECK(callee->has_simple_parameters());
|
| + DCHECK(callee->shared()->has_simple_parameters());
|
| Handle<JSObject> result =
|
| isolate->factory()->NewArgumentsObject(callee, argument_count);
|
|
|
| @@ -673,8 +673,8 @@ RUNTIME_FUNCTION(Runtime_NewScriptContext) {
|
| // Script contexts have a canonical empty function as their closure, not the
|
| // anonymous closure containing the global code. See
|
| // FullCodeGenerator::PushFunctionArgumentForContextAllocation.
|
| - Handle<JSFunction> closure(function->IsBuiltin() ? *function
|
| - : native_context->closure());
|
| + Handle<JSFunction> closure(
|
| + function->shared()->IsBuiltin() ? *function : native_context->closure());
|
| Handle<Context> result =
|
| isolate->factory()->NewScriptContext(closure, scope_info);
|
|
|
|
|