Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp |
index e6cd2c1b5fcd2840d67f3b2bbdf39398115e95e8..2cfc15efabc64739cf36e0505268bdef9eb07074 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp |
@@ -7,6 +7,7 @@ |
#include "V8TestInterface2.h" |
#include "bindings/core/v8/ExceptionState.h" |
+#include "bindings/core/v8/GeneratedCodeHelper.h" |
#include "bindings/core/v8/ScriptState.h" |
#include "bindings/core/v8/ScriptValue.h" |
#include "bindings/core/v8/V8DOMConfiguration.h" |
@@ -58,7 +59,7 @@ static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "item", "TestInterface2", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
- setMinimumArityTypeError(exceptionState, 1, info.Length()); |
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length())); |
return; |
} |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
@@ -84,7 +85,7 @@ static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "setItem", "TestInterface2", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
- setMinimumArityTypeError(exceptionState, 2, info.Length()); |
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length())); |
return; |
} |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
@@ -116,7 +117,7 @@ static void deleteItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "deleteItem", "TestInterface2", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
- setMinimumArityTypeError(exceptionState, 1, info.Length()); |
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length())); |
return; |
} |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
@@ -142,7 +143,7 @@ static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "namedItem", "TestInterface2", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
- setMinimumArityTypeError(exceptionState, 1, info.Length()); |
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length())); |
return; |
} |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
@@ -168,7 +169,7 @@ static void setNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "setNamedItem", "TestInterface2", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
- setMinimumArityTypeError(exceptionState, 2, info.Length()); |
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length())); |
return; |
} |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
@@ -200,7 +201,7 @@ static void deleteNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& inf |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "deleteNamedItem", "TestInterface2", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
- setMinimumArityTypeError(exceptionState, 1, info.Length()); |
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length())); |
return; |
} |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
@@ -288,7 +289,7 @@ static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "forEach", "TestInterface2", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
- setMinimumArityTypeError(exceptionState, 1, info.Length()); |
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length())); |
return; |
} |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
@@ -318,7 +319,7 @@ static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "TestInterface2", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
- setMinimumArityTypeError(exceptionState, 1, info.Length()); |
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length())); |
return; |
} |
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |