diff --git a/dom/workers/WorkerPrivate.cpp b/dom/workers/WorkerPrivate.cpp index fc486ad74e20f..6a87de27620af 100644 --- a/dom/workers/WorkerPrivate.cpp +++ b/dom/workers/WorkerPrivate.cpp @@ -3893,37 +3893,102 @@ JS : Rooted < +JSObject +* +> +global +( +aCx JS : : -Value -> -rval +CurrentGlobalOrNull ( aCx ) +) ; -IgnoredErrorResult -rv -; +JS +: +: +Rooted +< +JS +: +: +Value +> +callable +( +aCx +JS +: +: +ObjectOrNullValue +( mHandler - > -Call +CallableOrNull ( -{ -} -& +) +) +) +; +JS +: +: +HandleValueArray +args += +JS +: +: +HandleValueArray +: +: +empty +( +) +; +JS +: +: +Rooted +< +JS +: +: +Value +> rval -rv +( +aCx ) ; -return -! -rv +/ +/ +WorkerRunnable +: +: +Run +will +report +the +exception +if +it +happens . -Failed +return +JS_CallFunctionValue ( +aCx +global +callable +args +& +rval ) ; } diff --git a/dom/workers/test/WorkerDebugger.initialize_waiting_debugger.js b/dom/workers/test/WorkerDebugger.initialize_waiting_debugger.js index 98ca9edb646fb..3b371a07bf2e9 100644 --- a/dom/workers/test/WorkerDebugger.initialize_waiting_debugger.js +++ b/dom/workers/test/WorkerDebugger.initialize_waiting_debugger.js @@ -14,12 +14,6 @@ n " ) ; -setImmediate -( -function -( -) -{ postMessage ( " @@ -29,6 +23,3 @@ ran " ) ; -} -) -;