| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| index d6efcf3882fe3742b97a812e2c40c28d46dac290..c3b602e75f7fc3cb2c22260e48bb487554770b03 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| @@ -70,6 +70,7 @@ static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), info.GetIsolate());
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| double doubleArg;
|
| V8StringResource<> stringArg;
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| @@ -120,7 +121,6 @@ static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| return;
|
| }
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| Document& document = *toDocument(currentExecutionContext(info.GetIsolate()));
|
| TestInterfaceConstructor* impl = TestInterfaceConstructor::create(scriptState, executionContext, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionaryArg, sequenceStringArg, sequenceDictionaryArg, sequenceLongOrTestDictionaryArg, optionalDictionaryArg, optionalTestInterfaceEmptyArg, exceptionState);
|
| @@ -135,6 +135,7 @@ static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), info.GetIsolate());
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| V8StringResource<> arg;
|
| V8StringResource<> optArg;
|
| {
|
| @@ -148,7 +149,6 @@ static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| if (!arg.prepare())
|
| return;
|
| if (UNLIKELY(numArgsPassed <= 1)) {
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| Document& document = *toDocument(currentExecutionContext(info.GetIsolate()));
|
| TestInterfaceConstructor* impl = TestInterfaceConstructor::create(scriptState, executionContext, document, arg, exceptionState);
|
| @@ -164,7 +164,6 @@ static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| if (!optArg.prepare())
|
| return;
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| Document& document = *toDocument(currentExecutionContext(info.GetIsolate()));
|
| TestInterfaceConstructor* impl = TestInterfaceConstructor::create(scriptState, executionContext, document, arg, optArg, exceptionState);
|
| @@ -179,6 +178,7 @@ static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), info.GetIsolate());
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| V8StringResource<> arg;
|
| V8StringResource<> arg2;
|
| V8StringResource<> arg3;
|
| @@ -193,7 +193,6 @@ static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| if (!arg3.prepare())
|
| return;
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| Document& document = *toDocument(currentExecutionContext(info.GetIsolate()));
|
| TestInterfaceConstructor* impl = TestInterfaceConstructor::create(scriptState, executionContext, document, arg, arg2, arg3, exceptionState);
|
| @@ -253,7 +252,7 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| break;
|
| default:
|
| if (info.Length() >= 0) {
|
| - setArityTypeError(exceptionState, "[0, 1, 2, 3, 7, 8, 9]", info.Length());
|
| + throwInvalidArityError(exceptionState, "[0, 1, 2, 3, 7, 8, 9]", info.Length());
|
| return;
|
| }
|
| exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
|
| @@ -288,9 +287,10 @@ static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall
|
| }
|
| ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| V8StringResource<> arg;
|
| V8StringResource<> optArg;
|
| {
|
| @@ -304,7 +304,6 @@ static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall
|
| if (!arg.prepare())
|
| return;
|
| if (UNLIKELY(numArgsPassed <= 1)) {
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| Document& document = *toDocument(currentExecutionContext(info.GetIsolate()));
|
| TestInterfaceConstructor* impl = TestInterfaceConstructor::createForJSConstructor(scriptState, executionContext, document, arg, exceptionState);
|
| @@ -320,7 +319,6 @@ static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall
|
| if (!optArg.prepare())
|
| return;
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| Document& document = *toDocument(currentExecutionContext(info.GetIsolate()));
|
| TestInterfaceConstructor* impl = TestInterfaceConstructor::createForJSConstructor(scriptState, executionContext, document, arg, optArg, exceptionState);
|
|
|