| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 7d2893e08eb4711768099f33c4b3babcad015c62..d0ae5aea2ca8f95b49bf6e12d9556470bd0dc89c 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -2109,7 +2109,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InitializeConstGlobal) {
|
| } else if (lookup.IsNormal()) {
|
| if (global->GetNormalizedProperty(&lookup)->IsTheHole() ||
|
| !lookup.IsReadOnly()) {
|
| - global->SetNormalizedProperty(&lookup, *value);
|
| + HandleScope scope(isolate);
|
| + JSObject::SetNormalizedProperty(Handle<JSObject>(global), &lookup, value);
|
| }
|
| } else {
|
| // Ignore re-initialization of constants that have already been
|
| @@ -2198,7 +2199,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InitializeConstContextSlot) {
|
| }
|
| } else if (lookup.IsNormal()) {
|
| if (object->GetNormalizedProperty(&lookup)->IsTheHole()) {
|
| - object->SetNormalizedProperty(&lookup, *value);
|
| + JSObject::SetNormalizedProperty(object, &lookup, value);
|
| }
|
| } else {
|
| // We should not reach here. Any real, named property should be
|
|
|