| Index: Source/bindings/core/v8/PrivateScriptRunner.cpp
|
| diff --git a/Source/bindings/core/v8/PrivateScriptRunner.cpp b/Source/bindings/core/v8/PrivateScriptRunner.cpp
|
| index bfac52528535af061d8d5062074962fa9f47266a..52f3c17e55495f754d720c3eaa4fbe3f391235d7 100644
|
| --- a/Source/bindings/core/v8/PrivateScriptRunner.cpp
|
| +++ b/Source/bindings/core/v8/PrivateScriptRunner.cpp
|
| @@ -240,9 +240,11 @@ void rethrowExceptionInPrivateScript(v8::Isolate* isolate, v8::TryCatch& block,
|
| if (exceptionName == "PrivateScriptException") {
|
| v8::Handle<v8::Value> code = exceptionObject->Get(v8String(isolate, "code"));
|
| RELEASE_ASSERT(!code.IsEmpty() && code->IsInt32());
|
| + NonThrowableExceptionState nonThrowableExceptionState;
|
| + int exceptionCode = toInt32(isolate, code, NormalConversion, nonThrowableExceptionState);
|
| ScriptState::Scope scope(scriptStateInUserScript);
|
| ExceptionState exceptionState(errorContext, propertyName, interfaceName, scriptStateInUserScript->context()->Global(), scriptStateInUserScript->isolate());
|
| - exceptionState.throwDOMException(toInt32(isolate, code), messageString);
|
| + exceptionState.throwDOMException(exceptionCode, messageString);
|
| exceptionState.throwIfNeeded();
|
| return;
|
| }
|
|
|