Chromium Code Reviews| Index: Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp |
| diff --git a/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp b/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp |
| index 711660a221e95b51290102b292feee5fc94e3a2f..62381b7d02f8d592841c77cda963007b11d35c54 100644 |
| --- a/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp |
| +++ b/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp |
| @@ -565,7 +565,9 @@ void V8InjectedScriptHost::setNonEnumPropertyMethodCustom(const v8::FunctionCall |
| return; |
| v8::Local<v8::Object> object = info[0].As<v8::Object>(); |
| - object->ForceSet(info.GetIsolate()->GetCurrentContext(), info[1], info[2], v8::DontEnum); |
| + v8::Local<v8::String> key = info[1].As<v8::String>(); |
| + auto unused = object->DefineOwnProperty(info.GetIsolate()->GetCurrentContext(), key, info[2], v8::DontEnum); |
|
bashi
2015/06/03 03:05:30
This causes an exception.
|
| + ALLOW_UNUSED_LOCAL(unused); |
| } |
| void V8InjectedScriptHost::bindMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |