| Index: Source/bindings/v8/custom/V8MutationObserverCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8MutationObserverCustom.cpp b/Source/bindings/v8/custom/V8MutationObserverCustom.cpp
|
| index 60b65571d25420a24154fcc868960bee101e0b8c..7c3764a55d537510bc17b322d471adf572772eae 100644
|
| --- a/Source/bindings/v8/custom/V8MutationObserverCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8MutationObserverCustom.cpp
|
| @@ -31,7 +31,7 @@
|
| #include "config.h"
|
| #include "V8MutationObserver.h"
|
|
|
| -#include "bindings/v8/ExceptionMessages.h"
|
| +#include "bindings/v8/ExceptionState.h"
|
| #include "bindings/v8/V8Binding.h"
|
| #include "bindings/v8/V8DOMWrapper.h"
|
| #include "bindings/v8/V8MutationCallback.h"
|
| @@ -42,14 +42,16 @@ namespace WebCore {
|
|
|
| void V8MutationObserver::constructorCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ConstructionContext, "MutationObserver", info.Holder(), info.GetIsolate());
|
| if (info.Length() < 1) {
|
| - throwTypeError(ExceptionMessages::failedToConstruct("MutationObserver", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| + exceptionState.notEnoughArguments(1, info.Length());
|
| return;
|
| }
|
|
|
| v8::Local<v8::Value> arg = info[0];
|
| if (!arg->IsFunction()) {
|
| - throwTypeError("Callback argument must be a function", info.GetIsolate());
|
| + exceptionState.throwTypeError("Callback argument must be a function");
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| }
|
|
|
|
|