summaryrefslogtreecommitdiff
path: root/js/src/vm
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2023-05-08 18:28:18 -0500
committerBrian Smith <brian@dbsoft.org>2023-05-08 18:28:18 -0500
commit13536bf8c99ce19f3e08ea3a1287e78b1811cd42 (patch)
tree9ef4e2459c23ae0193bd1cd86b37cdb3fafca96e /js/src/vm
parent2971cffab479097415e383366561d514086d0d0b (diff)
downloaduxp-13536bf8c99ce19f3e08ea3a1287e78b1811cd42.tar.gz
Issue #2236 - Fix import.meta module error in lambdas by moving parseGoal() into SharedContext.
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1604792 Also remove ParseGoal being passed through Parser introduced in #1691 Part 2.
Diffstat (limited to 'js/src/vm')
-rw-r--r--js/src/vm/Debugger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/vm/Debugger.cpp b/js/src/vm/Debugger.cpp
index 3986083824..b5fb94ca05 100644
--- a/js/src/vm/Debugger.cpp
+++ b/js/src/vm/Debugger.cpp
@@ -5084,8 +5084,7 @@ Debugger::isCompilableUnit(JSContext* cx, unsigned argc, Value* vp)
frontend::Parser<frontend::FullParseHandler> parser(cx, cx->tempLifoAlloc(),
options, chars.twoByteChars(),
length, /* foldConstants = */ true,
- usedNames, nullptr, nullptr,
- frontend::ParseGoal::Script);
+ usedNames, nullptr, nullptr);
JS::WarningReporter older = JS::SetWarningReporter(cx, nullptr);
if (!parser.checkOptions() || !parser.parse()) {
// We ran into an error. If it was because we ran out of memory we report