v8::Handle<v8::Value> V8JavaScriptCallFrame::setVariableValueCallback(const v8::Arguments& args) { JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder()); int scopeIndex = args[0]->Int32Value(); String variableName = toWebCoreStringWithUndefinedOrNullCheck(args[1]); v8::Handle<v8::Value> newValue = args[2]; return impl->setVariableValue(scopeIndex, variableName, newValue); }
void V8JavaScriptCallFrame::setVariableValueMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args) { JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder()); int scopeIndex = args[0]->Int32Value(); String variableName = toWebCoreStringWithUndefinedOrNullCheck(args[1]); v8::Handle<v8::Value> newValue = args[2]; v8SetReturnValue(args, impl->setVariableValue(scopeIndex, variableName, newValue)); }