diff --git a/dom/workers/WorkerPrivate.cpp b/dom/workers/WorkerPrivate.cpp index 705180bd3927..07db8602a9a7 100644 --- a/dom/workers/WorkerPrivate.cpp +++ b/dom/workers/WorkerPrivate.cpp @@ -3046,37 +3046,88 @@ 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 -. -Failed +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 98ca9edb646f..3b371a07bf2e 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 " ) ; -} -) -;