diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-04 12:59:38 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-04 12:59:38 +0000 |
commit | 9b60e71109e9df98b5ecc7ffcc58284758fc8b82 (patch) | |
tree | 4fc9fc4e2cbb91c7be861fbd7609d7cfc81c81e9 /js/src/jsapi.h | |
parent | 046534432d2914c80bcab36797fe0a43ff332a98 (diff) | |
download | uxp-9b60e71109e9df98b5ecc7ffcc58284758fc8b82.tar.gz |
Issue #618 - Remove context and heap-idle check
For checking if a module is in an error state and what the error is, it
shouldn't matter if we are currently GC-ing or not. So we don't need to check
for it, which removes the requirement to pass in the JS context (needed for
AssertHeapIsIdle's runtime check); this unblocks progress where otherwise we'd
have to figure out what the context is at the module level just to satisfy this
check.
Diffstat (limited to 'js/src/jsapi.h')
-rw-r--r-- | js/src/jsapi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 6d306edc56..9c3bf81518 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -4396,10 +4396,10 @@ extern JS_PUBLIC_API(JSScript*) GetModuleScript(JSContext* cx, JS::HandleObject moduleRecord); extern JS_PUBLIC_API(bool) -IsModuleErrored(JSContext* cx, JSObject* moduleRecord); +IsModuleErrored(JSObject* moduleRecord); extern JS_PUBLIC_API(JS::Value) -GetModuleError(JSContext* cx, JSObject* moduleRecord); +GetModuleError(JSObject* moduleRecord); } /* namespace JS */ |