| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
|
| index 5180dfff57051c8648acf1a595193a09d29b407a..b4a807f01c57a734632c85f56b738a5fa5903e44 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp
|
| @@ -7,6 +7,7 @@
|
| #include "V8TestSpecialOperations.h"
|
|
|
| #include "bindings/core/v8/ExceptionState.h"
|
| +#include "bindings/core/v8/GeneratedCodeHelper.h"
|
| #include "bindings/core/v8/NodeOrNodeList.h"
|
| #include "bindings/core/v8/V8DOMConfiguration.h"
|
| #include "bindings/core/v8/V8Node.h"
|
| @@ -55,17 +56,18 @@ namespace TestSpecialOperationsV8Internal {
|
|
|
| static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder());
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "namedItem", "TestSpecialOperations", 1, info.Length()));
|
| + V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("namedItem", "TestSpecialOperations", ExceptionMessages::notEnoughArguments(1, info.Length())));
|
| return;
|
| }
|
| - TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder());
|
| +
|
| V8StringResource<> name;
|
| - {
|
| - name = info[0];
|
| - if (!name.prepare())
|
| - return;
|
| - }
|
| + name = info[0];
|
| + if (!name.prepare())
|
| + return;
|
| +
|
| NodeOrNodeList result;
|
| impl->getItem(name, result);
|
| v8SetReturnValue(info, result);
|
|
|