зеркало из https://github.com/mozilla/gecko-dev.git
eb4179edc3
https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script requires that the addModule() promise is rejected with an "AbortError" DOMException. https://github.com/w3c/css-houdini-drafts/issues/509 proposes a more specific error, but that has not been implemented in another browser. StealExceptionFromJSContext() set ErrorCode to NS_ERROR_INTERNAL_ERRORRESULT_JS_EXCEPTION if there was a pending exception (or NS_ERROR_OUT_OF_MEMORY on failure to record the JS exception) or NS_ERROR_UNCATCHABLE_EXCEPTION if there was no pending exception. StealNSResult() converted NS_ERROR_INTERNAL_ERRORRESULT_JS_EXCEPTION to NS_ERROR_DOM_INVALID_STATE_ERR. Information about the error is lost on conversion of a SyntaxError to the promise rejection, so allow the SyntaxError to be reported the console. Depends on D44601 Differential Revision: https://phabricator.services.mozilla.com/D44602 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
tests | ||
Worklet.cpp | ||
Worklet.h | ||
WorkletGlobalScope.cpp | ||
WorkletGlobalScope.h | ||
WorkletImpl.cpp | ||
WorkletImpl.h | ||
WorkletPrincipal.cpp | ||
WorkletPrincipal.h | ||
WorkletThread.cpp | ||
WorkletThread.h | ||
moz.build |