diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-03 13:56:49 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-03 13:56:49 +0000 |
commit | 61a471ef17645c211d228b4dd085a933fba6e6ba (patch) | |
tree | 0ee6503cf1aadea9e5737056896fa61782cb1822 /js/src/jsapi.cpp | |
parent | 98752af13349e2da56b5ed1219cae30008ef250a (diff) | |
download | UXP-61a471ef17645c211d228b4dd085a933fba6e6ba.tar UXP-61a471ef17645c211d228b4dd085a933fba6e6ba.tar.gz UXP-61a471ef17645c211d228b4dd085a933fba6e6ba.tar.lz UXP-61a471ef17645c211d228b4dd085a933fba6e6ba.tar.xz UXP-61a471ef17645c211d228b4dd085a933fba6e6ba.zip |
Issue #618 - Align module instantiation/errors with the updated spec.
Store and re-throw module instantiation and evaluation errors.
Ref: BZ 1374239, 1394492
Diffstat (limited to 'js/src/jsapi.cpp')
-rw-r--r-- | js/src/jsapi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index d75a3c33a..53ea4ebc6 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -4709,7 +4709,7 @@ JS::ModuleDeclarationInstantiation(JSContext* cx, JS::HandleObject moduleArg) AssertHeapIsIdle(cx); CHECK_REQUEST(cx); assertSameCompartment(cx, moduleArg); - return ModuleObject::DeclarationInstantiation(cx, moduleArg.as<ModuleObject>()); + return ModuleObject::Instantiate(cx, moduleArg.as<ModuleObject>()); } JS_PUBLIC_API(bool) @@ -4718,7 +4718,7 @@ JS::ModuleEvaluation(JSContext* cx, JS::HandleObject moduleArg) AssertHeapIsIdle(cx); CHECK_REQUEST(cx); assertSameCompartment(cx, moduleArg); - return ModuleObject::Evaluation(cx, moduleArg.as<ModuleObject>()); + return ModuleObject::Evaluate(cx, moduleArg.as<ModuleObject>()); } JS_PUBLIC_API(JSObject*) |