Moonchild
2b4e577d8e
No issue - Fix asserts in debug.
...
Hashbang parser changes allow more than one EOL which screws up these
assertions' premise. Just remove them as the preconditions are no longer
valid.
2024-09-22 20:43:23 +08:00
Moonchild
7cc9551e79
Issue #2559 - Implement hashbang grammar
...
This adds special-case #! comment handling at the top level, treating
any hashbang line as a single-line comment in the parser.
This only applies to Eval(), module script or global context.
2024-09-06 09:15:51 +08:00
Brian Smith
4aa193b16b
Issue #1240 - Part 9 - Fix incorrectly parsing decimal BigInt 0n. The decimal parser strips leading 0s, so prevent tokenbuf being empty.
2023-07-25 09:14:59 +08:00
Brian Smith
20b52c9e2e
Issue #1240 - Part 5d - Use the radix when parsing BigInts. Fixes Hex, Octal and Binary BigInt literal parsing. Previously it was only parsing in decimal.
2023-07-25 09:12:20 +08:00
Brian Smith
dc23241afb
Issue #1240 - Part 4 - Implement parser support for BigInt literals. https://bugzilla.mozilla.org/show_bug.cgi?id=1505849 Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1456568 Un-result-ified the BigInt XDR code, so we can enable it. https://bugzilla.mozilla.org/show_bug.cgi?id=1419094 Uninitialised memory read with BigInt right-shift https://bugzilla.mozilla.org/show_bug.cgi?id=1679003
2023-07-25 09:09:57 +08:00
roytam1
fa52ac972f
Issue #2142 - follow-up rev 51db22ff, removing static keyword from upstream force-push rev aa6d42e5fc..63a00fdd25
2023-05-03 21:39:40 +08:00
Martok
10951a169c
Issue #2097 - Implement logical assignment operators
...
Based-on: 1629106/1, 1684020
2023-05-01 13:27:04 +08:00
Martok
ba9647a12a
Issue #2142 - Remove the temporary fields option
...
Now that everything is finished, we don't need the feature flag any more.
2023-05-01 13:27:04 +08:00
Martok
51db22ff2f
Issue #2142 - Implement syntax for public/private fields and computed field names
...
This state still has the initializers scoped on .initializers local variable, which will be changed later.
Based-on: m-c 1499448, 1530084, 1530832, 1529448 (partial), 1532921, 1528039, 1528038, 1535166, 1550628,
1535166, 1550628, 1541641, 1547133, 1540787, 1535804/9
2023-05-01 13:26:43 +08:00
Martok
6abb54ff11
Issue #2142 - Reduce calls to FindReservedWord when checking for forbidden identifiers during parsing
...
Based-on: m-c 1351913/{1,2}
2023-05-01 12:27:10 +08:00
Martok
199ff12ba8
No issue - Flag to parse 'v' flag as 'u' for automated tests, disabled by default
2022-12-24 08:09:25 +08:00
FranklinDM
d7cdeaf313
Issue #1894 - Part 2: Implement support for nullish coalescing in the JS parser
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1566141
2022-05-22 06:46:21 +08:00
FranklinDM
e04a23ff98
Issue #1658 - Part 1: Implement support for optional chaining in the JS Parser
...
Partially based on: https://bugzilla.mozilla.org/show_bug.cgi?id=1566143
2022-05-05 09:04:36 +08:00
Moonchild
bd0f8a2eca
Issue #1739 - Implement numeric separators.
...
Resolves #1739
2021-02-16 14:03:45 +08:00
Moonchild
34dc51690f
Issue #1732 - Implement JSON superset proposal.
...
This change makes unicode line and paragraph separators allowed in JS strings,
removing the only quirk of the JS string definition that made JSON not a valid
subset of JS.
Resolves #1732
2021-02-12 10:49:19 +08:00
Moonchild
dabd32f955
Issue #1656 - Part 7: Nuke vim config lines in JS
2020-09-25 22:04:24 +08:00
wolfbeast
8148cf0001
Issue #1284 - Implement /s (dotAll) for regular expressions, v2.
...
Resolves #1284 .
2019-11-22 10:52:02 +08:00
Gaming4JC
c1f6b0ff36
1336783 - Part 1: Rework on reserved word and remove TokenStream::KeywordIsName.
2019-07-22 19:50:44 +08:00
Gaming4JC
dc06903cd1
1283712 - Part 3: Add Parser::errorWithNotes and Parser::errorWithNotesAt.
2019-07-22 19:49:50 +08:00
Gaming4JC
ee1e2aba19
1317375 - Implement "Template Literals Revision / Lifting Template Literal Restriction" ECMAScript proposal
2019-07-22 19:47:00 +08:00
Gaming4JC
e4867e8b4d
1326454 - Don't report an error when SourceCoords::add fails, because it fails only when an underlying Vector::append fails, and that vector handles OOM reporting itself.
2019-07-22 19:46:43 +08:00
Gaming4JC
a91f1769b7
1326454 - Make TokenStream::skipChars{,IgnoreEOL} accept an unsigned integral number of chars to skip.
2019-07-22 19:46:36 +08:00
Gaming4JC
c7d3f8e8a3
1326454 - Make TokenStream::peekChar's signature fallible.
2019-07-22 19:46:33 +08:00
Gaming4JC
3d4f7e67fc
1326454 - Rename TokenStream::getBracedUnicode to TokenStream::matchBracedUnicode and make its signature fallible.
2019-07-22 19:46:30 +08:00
Gaming4JC
cd2bccf4c0
1326454 - Introduce TokenStream::warning that warns at the current offset.
2019-07-22 19:46:27 +08:00
Gaming4JC
c94ed16b4f
1326454 - Introduce TokenStream::error that reports an error at the current offset.
2019-07-22 19:46:24 +08:00
wolfbeast
0c3fb437a9
Rename TokenStream::reportStrictWarningErrorNumberVA to
...
TokenStream::reportExtraWarningErrorNumberVA for clarity.
Emit Extra Warnings instead of Strict Warnings from the BCE where
it makes sense.
2019-04-13 07:02:02 +08:00
wolfbeast
b68de773fd
Stage 1-1: Implement Function.prototype.toString revision proposal.
...
Tag #960
2019-04-13 07:00:18 +08:00
janekptacijarabaci
04e171e0a4
Correctly tokenize valid JS names when using Unicode mathematical alphanumeric symbols as variable name
...
Issue https://github.com/MoonchildProductions/Pale-Moon/issues/1647
2019-02-15 23:38:13 +08:00
Roy Tam
dcd9973243
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
2018-01-19 03:59:58 +08:00