diff options
Diffstat (limited to 'src/javascript/jsc/bindings/webcore/JSDOMConvertPromise.h')
-rw-r--r-- | src/javascript/jsc/bindings/webcore/JSDOMConvertPromise.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/javascript/jsc/bindings/webcore/JSDOMConvertPromise.h b/src/javascript/jsc/bindings/webcore/JSDOMConvertPromise.h index 29324f11b..e01a99884 100644 --- a/src/javascript/jsc/bindings/webcore/JSDOMConvertPromise.h +++ b/src/javascript/jsc/bindings/webcore/JSDOMConvertPromise.h @@ -28,7 +28,7 @@ #include "IDLTypes.h" #include "JSDOMConvertBase.h" #include "JSDOMPromise.h" -#include "WorkerGlobalScope.h" +// #include "WorkerGlobalScope.h" namespace WebCore { @@ -50,14 +50,14 @@ template<typename T> struct Converter<IDLPromise<T>> : DefaultConverter<IDLPromi auto* promise = JSC::JSPromise::resolvedPromise(globalObject, value); if (scope.exception()) { auto* scriptExecutionContext = globalObject->scriptExecutionContext(); - if (is<WorkerGlobalScope>(scriptExecutionContext)) { - auto* scriptController = downcast<WorkerGlobalScope>(*scriptExecutionContext).script(); - bool terminatorCausedException = vm.isTerminationException(scope.exception()); - if (terminatorCausedException || (scriptController && scriptController->isTerminatingExecution())) { - scriptController->forbidExecution(); - return nullptr; - } - } + // if (is<WorkerGlobalScope>(scriptExecutionContext)) { + // auto* scriptController = downcast<WorkerGlobalScope>(*scriptExecutionContext).script(); + // bool terminatorCausedException = vm.isTerminationException(scope.exception()); + // if (terminatorCausedException || (scriptController && scriptController->isTerminatingExecution())) { + // scriptController->forbidExecution(); + // return nullptr; + // } + // } exceptionThrower(lexicalGlobalObject, scope); return nullptr; } |