| Index: Source/bindings/tests/results/V8TestNamedConstructor.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestNamedConstructor.cpp b/Source/bindings/tests/results/V8TestNamedConstructor.cpp
|
| index a492a018361d74987fcea809e5bd126034f42f4d..af2132598d7529b53e42815698177d54652599aa 100644
|
| --- a/Source/bindings/tests/results/V8TestNamedConstructor.cpp
|
| +++ b/Source/bindings/tests/results/V8TestNamedConstructor.cpp
|
| @@ -23,6 +23,7 @@
|
|
|
| #include "RuntimeEnabledFeatures.h"
|
| #include "V8Document.h"
|
| +#include "bindings/v8/ExceptionState.h"
|
| #include "bindings/v8/ScriptController.h"
|
| #include "bindings/v8/V8Binding.h"
|
| #include "bindings/v8/V8DOMConfiguration.h"
|
| @@ -30,7 +31,6 @@
|
| #include "bindings/v8/V8ObjectConstructor.h"
|
| #include "core/dom/ContextFeatures.h"
|
| #include "core/dom/Document.h"
|
| -#include "core/dom/ExceptionCode.h"
|
| #include "core/page/Frame.h"
|
| #include "core/platform/chromium/TraceEvent.h"
|
| #include "wtf/UnusedParam.h"
|
| @@ -89,17 +89,15 @@ static void V8TestNamedConstructorConstructorCallback(const v8::FunctionCallback
|
| throwNotEnoughArgumentsError(args.GetIsolate());
|
| return;
|
| }
|
| - ExceptionCode ec = 0;
|
| + ExceptionState es(args.GetIsolate());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, args[0]);
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]);
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str3, argumentOrNull(args, 2));
|
|
|
| - RefPtr<TestNamedConstructor> impl = TestNamedConstructor::createForJSConstructor(document, str1, str2, str3, ec);
|
| + RefPtr<TestNamedConstructor> impl = TestNamedConstructor::createForJSConstructor(document, str1, str2, str3, es);
|
| v8::Handle<v8::Object> wrapper = args.Holder();
|
| - if (ec) {
|
| - setDOMException(ec, args.GetIsolate());
|
| + if (es.throwIfNeeded())
|
| return;
|
| - }
|
|
|
| V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl.release(), &V8TestNamedConstructorConstructor::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
|
| args.GetReturnValue().Set(wrapper);
|
|
|