mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +09:00
Issue #1691 - Part 2: Implement call import and import meta in the parser. https://bugzilla.mozilla.org/show_bug.cgi?id=1427610 https://bugzilla.mozilla.org/show_bug.cgi?id=1484948
(cherry picked from commit 6be083187f49e444de1bb116bb5930b20125190b)
This commit is contained in:
parent
1a6b3a822c
commit
a8ab41b4c6
21 changed files with 238 additions and 46 deletions
|
|
@ -4146,7 +4146,8 @@ Parse(JSContext* cx, unsigned argc, Value* vp)
|
|||
if (!usedNames.init())
|
||||
return false;
|
||||
Parser<FullParseHandler> parser(cx, cx->tempLifoAlloc(), options, chars, length,
|
||||
/* foldConstants = */ true, usedNames, nullptr, nullptr);
|
||||
/* foldConstants = */ true, usedNames, nullptr, nullptr,
|
||||
ParseGoal::Script);
|
||||
if (!parser.checkOptions())
|
||||
return false;
|
||||
|
||||
|
|
@ -4197,7 +4198,8 @@ SyntaxParse(JSContext* cx, unsigned argc, Value* vp)
|
|||
return false;
|
||||
Parser<frontend::SyntaxParseHandler> parser(cx, cx->tempLifoAlloc(),
|
||||
options, chars, length, false,
|
||||
usedNames, nullptr, nullptr);
|
||||
usedNames, nullptr, nullptr,
|
||||
ParseGoal::Script);
|
||||
if (!parser.checkOptions())
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue