Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 1153613007: bindings: Use CreateDataProperty() instead of ForceSet() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix uninitialized error Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 static void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const v 8::PropertyCallbackInfo<v8::Value>& info) 96 static void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const v 8::PropertyCallbackInfo<v8::Value>& info)
97 { 97 {
98 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 98 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
99 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::Constant); 99 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::Constant);
100 v8SetReturnValueInt(info, 1); 100 v8SetReturnValueInt(info, 1);
101 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 101 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
102 } 102 }
103 103
104 template<class CallbackInfo> 104 template<class CallbackInfo>
105 static void TestObjectForceSetAttributeOnThis(v8::Local<v8::Name> name, v8::Loca l<v8::Value> v8Value, const CallbackInfo& info) 105 static bool TestObjectCreateDataProperty(v8::Local<v8::Name> name, v8::Local<v8: :Value> v8Value, const CallbackInfo& info)
106 { 106 {
107 ASSERT(info.This()->IsObject()); 107 ASSERT(info.This()->IsObject());
108 v8::Local<v8::Object>::Cast(info.This())->ForceSet(info.GetIsolate()->GetCur rentContext(), name, v8Value); 108 return v8CallBoolean(v8::Local<v8::Object>::Cast(info.This())->CreateDataPro perty(info.GetIsolate()->GetCurrentContext(), name, v8Value));
109 } 109 }
110 110
111 static void TestObjectConstructorAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 111 static void TestObjectConstructorAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
112 { 112 {
113 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 113 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
114 do { 114 do {
115 v8::Local<v8::Value> data = info.Data(); 115 v8::Local<v8::Value> data = info.Data();
116 ASSERT(data->IsExternal()); 116 ASSERT(data->IsExternal());
117 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()- >CreationContext()); 117 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()- >CreationContext());
118 if (!perContextData) 118 if (!perContextData)
119 break; 119 break;
120 const WrapperTypeInfo* wrapperTypeInfo = WrapperTypeInfo::unwrap(data); 120 const WrapperTypeInfo* wrapperTypeInfo = WrapperTypeInfo::unwrap(data);
121 if (!wrapperTypeInfo) 121 if (!wrapperTypeInfo)
122 break; 122 break;
123 TestObjectForceSetAttributeOnThis(v8String(info.GetIsolate(), wrapperTyp eInfo->interfaceName), v8Value, info); 123 TestObjectCreateDataProperty(v8String(info.GetIsolate(), wrapperTypeInfo ->interfaceName), v8Value, info);
124 } while (false); // do ... while (false) just for use of break 124 } while (false); // do ... while (false) just for use of break
125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
126 } 126 }
127 127
128 static void stringifierAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info) 128 static void stringifierAttributeAttributeGetter(const v8::FunctionCallbackInfo<v 8::Value>& info)
129 { 129 {
130 v8::Local<v8::Object> holder = info.Holder(); 130 v8::Local<v8::Object> holder = info.Holder();
131 TestObject* impl = V8TestObject::toImpl(holder); 131 TestObject* impl = V8TestObject::toImpl(holder);
132 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() ); 132 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() );
133 } 133 }
(...skipping 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after
2547 v8::Local<v8::Value> v8Value = info[0]; 2547 v8::Local<v8::Value> v8Value = info[0];
2548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2549 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info) ; 2549 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info) ;
2550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2551 } 2551 }
2552 #endif // ENABLE(CONDITION) 2552 #endif // ENABLE(CONDITION)
2553 2553
2554 static void testInterfaceEmptyConstructorAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2554 static void testInterfaceEmptyConstructorAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2555 { 2555 {
2556 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test InterfaceEmptyConstructorAttribute"); 2556 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test InterfaceEmptyConstructorAttribute");
2557 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); 2557 TestObjectCreateDataProperty(propertyName, v8Value, info);
2558 } 2558 }
2559 2559
2560 static void testInterfaceEmptyConstructorAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2560 static void testInterfaceEmptyConstructorAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2561 { 2561 {
2562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2563 TestObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetter( v8Value, info); 2563 TestObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetter( v8Value, info);
2564 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2564 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2565 } 2565 }
2566 2566
2567 static void testInterfaceEmptyConstructorAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2567 static void testInterfaceEmptyConstructorAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2568 { 2568 {
2569 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test InterfaceEmptyConstructorAttribute"); 2569 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test InterfaceEmptyConstructorAttribute");
2570 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); 2570 TestObjectCreateDataProperty(propertyName, v8Value, info);
2571 } 2571 }
2572 2572
2573 static void testInterfaceEmptyConstructorAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2573 static void testInterfaceEmptyConstructorAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2574 { 2574 {
2575 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2575 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2576 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr uctorAttribute); 2576 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr uctorAttribute);
2577 TestObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetter( v8Value, info); 2577 TestObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetter( v8Value, info);
2578 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2578 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2579 } 2579 }
2580 2580
2581 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeAttributeS etter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2581 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeAttributeS etter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2582 { 2582 {
2583 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "meas ureAsFeatureNameTestInterfaceEmptyConstructorAttribute"); 2583 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "meas ureAsFeatureNameTestInterfaceEmptyConstructorAttribute");
2584 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); 2584 TestObjectCreateDataProperty(propertyName, v8Value, info);
2585 } 2585 }
2586 2586
2587 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeAttributeS etterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::Prope rtyCallbackInfo<void>& info) 2587 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeAttributeS etterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::Prope rtyCallbackInfo<void>& info)
2588 { 2588 {
2589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2590 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::FeatureName); 2590 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::FeatureName);
2591 TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstructorAttri buteAttributeSetter(v8Value, info); 2591 TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstructorAttri buteAttributeSetter(v8Value, info);
2592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2593 } 2593 }
2594 2594
(...skipping 1920 matching lines...) Expand 10 before | Expand all | Expand 10 after
4515 static void replaceableReadonlyLongAttributeAttributeGetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 4515 static void replaceableReadonlyLongAttributeAttributeGetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
4516 { 4516 {
4517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4518 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info); 4518 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info);
4519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4520 } 4520 }
4521 4521
4522 static void replaceableReadonlyLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4522 static void replaceableReadonlyLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4523 { 4523 {
4524 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "repl aceableReadonlyLongAttribute"); 4524 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "repl aceableReadonlyLongAttribute");
4525 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); 4525 TestObjectCreateDataProperty(propertyName, v8Value, info);
4526 } 4526 }
4527 4527
4528 static void replaceableReadonlyLongAttributeAttributeSetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 4528 static void replaceableReadonlyLongAttributeAttributeSetterCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
4529 { 4529 {
4530 v8::Local<v8::Value> v8Value = info[0]; 4530 v8::Local<v8::Value> v8Value = info[0];
4531 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4531 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4532 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeSetter(v8Valu e, info); 4532 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeSetter(v8Valu e, info);
4533 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4533 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4534 } 4534 }
4535 4535
4536 static void replaceableReadonlyLongAccessorAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info) 4536 static void replaceableReadonlyLongAccessorAttributeGetter(const v8::FunctionCal lbackInfo<v8::Value>& info)
4537 { 4537 {
4538 v8::Local<v8::Object> holder = info.Holder(); 4538 v8::Local<v8::Object> holder = info.Holder();
4539 TestObject* impl = V8TestObject::toImpl(holder); 4539 TestObject* impl = V8TestObject::toImpl(holder);
4540 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAccessor()); 4540 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAccessor());
4541 } 4541 }
4542 4542
4543 static void replaceableReadonlyLongAccessorAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 4543 static void replaceableReadonlyLongAccessorAttributeGetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
4544 { 4544 {
4545 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4545 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4546 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeGetter(info); 4546 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeGetter(info);
4547 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4547 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4548 } 4548 }
4549 4549
4550 static void replaceableReadonlyLongAccessorAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 4550 static void replaceableReadonlyLongAccessorAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
4551 { 4551 {
4552 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "repl aceableReadonlyLongAccessor"); 4552 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "repl aceableReadonlyLongAccessor");
4553 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); 4553 TestObjectCreateDataProperty(propertyName, v8Value, info);
4554 } 4554 }
4555 4555
4556 static void replaceableReadonlyLongAccessorAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 4556 static void replaceableReadonlyLongAccessorAttributeSetterCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
4557 { 4557 {
4558 v8::Local<v8::Value> v8Value = info[0]; 4558 v8::Local<v8::Value> v8Value = info[0];
4559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4560 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeSetter(v8Value , info); 4560 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeSetter(v8Value , info);
4561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4562 } 4562 }
4563 4563
(...skipping 8479 matching lines...) Expand 10 before | Expand all | Expand 10 after
13043 13043
13044 void V8TestObject::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8::Ob ject> prototypeObject) 13044 void V8TestObject::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8::Ob ject> prototypeObject)
13045 { 13045 {
13046 v8::Local<v8::Context> v8Context(prototypeObject->CreationContext()); 13046 v8::Local<v8::Context> v8Context(prototypeObject->CreationContext());
13047 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); 13047 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate));
13048 v8::Local<v8::Object> unscopeables; 13048 v8::Local<v8::Object> unscopeables;
13049 if (v8CallBoolean(prototypeObject->HasOwnProperty(v8Context, unscopablesSymb ol))) 13049 if (v8CallBoolean(prototypeObject->HasOwnProperty(v8Context, unscopablesSymb ol)))
13050 unscopeables = prototypeObject->Get(v8Context, unscopablesSymbol).ToLoca lChecked().As<v8::Object>(); 13050 unscopeables = prototypeObject->Get(v8Context, unscopablesSymbol).ToLoca lChecked().As<v8::Object>();
13051 else 13051 else
13052 unscopeables = v8::Object::New(isolate); 13052 unscopeables = v8::Object::New(isolate);
13053 unscopeables->ForceSet(v8Context, v8AtomicString(isolate, "unscopeableLongAt tribute"), v8::True(isolate)).FromJust(); 13053 unscopeables->CreateDataProperty(v8Context, v8AtomicString(isolate, "unscope ableLongAttribute"), v8::True(isolate)).FromJust();
13054 if (RuntimeEnabledFeatures::featureNameEnabled()) { 13054 if (RuntimeEnabledFeatures::featureNameEnabled()) {
13055 unscopeables->ForceSet(v8Context, v8AtomicString(isolate, "unscopeableRu ntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); 13055 unscopeables->CreateDataProperty(v8Context, v8AtomicString(isolate, "uns copeableRuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust();
13056 } 13056 }
13057 if (RuntimeEnabledFeatures::featureNameEnabled()) { 13057 if (RuntimeEnabledFeatures::featureNameEnabled()) {
13058 unscopeables->ForceSet(v8Context, v8AtomicString(isolate, "unscopeableRu ntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); 13058 unscopeables->CreateDataProperty(v8Context, v8AtomicString(isolate, "uns copeableRuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust();
13059 } 13059 }
13060 unscopeables->ForceSet(v8Context, v8AtomicString(isolate, "unscopeableVoidMe thod"), v8::True(isolate)).FromJust(); 13060 unscopeables->CreateDataProperty(v8Context, v8AtomicString(isolate, "unscope ableVoidMethod"), v8::True(isolate)).FromJust();
13061 prototypeObject->ForceSet(v8Context, unscopablesSymbol, unscopeables).FromJu st(); 13061 prototypeObject->CreateDataProperty(v8Context, unscopablesSymbol, unscopeabl es).FromJust();
13062 } 13062 }
13063 13063
13064 void V8TestObject::refObject(ScriptWrappable* scriptWrappable) 13064 void V8TestObject::refObject(ScriptWrappable* scriptWrappable)
13065 { 13065 {
13066 scriptWrappable->toImpl<TestObject>()->ref(); 13066 scriptWrappable->toImpl<TestObject>()->ref();
13067 } 13067 }
13068 13068
13069 void V8TestObject::derefObject(ScriptWrappable* scriptWrappable) 13069 void V8TestObject::derefObject(ScriptWrappable* scriptWrappable)
13070 { 13070 {
13071 scriptWrappable->toImpl<TestObject>()->deref(); 13071 scriptWrappable->toImpl<TestObject>()->deref();
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
13590 ScriptState::Scope scope(scriptState); 13590 ScriptState::Scope scope(scriptState);
13591 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13591 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13592 if (holder.IsEmpty()) 13592 if (holder.IsEmpty())
13593 return false; 13593 return false;
13594 13594
13595 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13595 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13596 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13596 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13597 } 13597 }
13598 13598
13599 } // namespace blink 13599 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698