Index: Source/bindings/core/v8/ScriptPromise.cpp |
diff --git a/Source/bindings/core/v8/ScriptPromise.cpp b/Source/bindings/core/v8/ScriptPromise.cpp |
index 3f5d3df100860d472c28294c670f329e816f4c9d..f34d5b8ee62d08d3286d522382f6f62ecc3ad525 100644 |
--- a/Source/bindings/core/v8/ScriptPromise.cpp |
+++ b/Source/bindings/core/v8/ScriptPromise.cpp |
@@ -94,7 +94,7 @@ ScriptPromise::ScriptPromise(ScriptState* scriptState, v8::Handle<v8::Value> val |
if (!value->IsPromise()) { |
m_promise = ScriptValue(scriptState, v8::Handle<v8::Value>()); |
- V8ThrowException::throwTypeError("the given value is not a Promise", scriptState->isolate()); |
+ V8ThrowException::throwTypeError(scriptState->isolate(), "the given value is not a Promise"); |
return; |
} |
m_promise = ScriptValue(scriptState, value); |