| Index: src/runtime/runtime-scopes.cc
|
| diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc
|
| index 1da0e6a8e07c1811866c918b91094659bdca78e6..13f04479ae42776aa2df317bc471ed928cc7e5e5 100644
|
| --- a/src/runtime/runtime-scopes.cc
|
| +++ b/src/runtime/runtime-scopes.cc
|
| @@ -78,8 +78,8 @@
|
| }
|
|
|
| // Define or redefine own property.
|
| - RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, JSObject::DefineOwnPropertyIgnoreAttributes(&it, value, attr));
|
| + RETURN_FAILURE_ON_EXCEPTION(isolate, JSObject::SetOwnPropertyIgnoreAttributes(
|
| + global, name, value, attr));
|
|
|
| return isolate->heap()->undefined_value();
|
| }
|
| @@ -196,8 +196,8 @@
|
| }
|
| }
|
|
|
| - RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, JSObject::DefineOwnPropertyIgnoreAttributes(&it, value, attr));
|
| + RETURN_FAILURE_ON_EXCEPTION(isolate, JSObject::SetOwnPropertyIgnoreAttributes(
|
| + global, name, value, attr));
|
|
|
| return *value;
|
| }
|
|
|