AST: Update with latest changes from master (#5270)
* Fix #5213: Update Babel options to restore MINIFY=false (#5214) * CSX namespaced tags and attributes (#5218) * Support namespaces in attributes * Support namespaces in tag names * Support reserved words in CSX boolean properties (fix #5125) * Implement review comments * Build * Revert parser.js * Add debugging information to error message test (#5239) One of the test cases in test/error_messages.coffee fails intermittently in the Node.js ecosystem-testing tool CITGM. In an effort to help debug what's going on when this occurs, this adds more information to the AssertionError message in question. * Fix #5103: Add support for BigInt literals (#5104) * Fix #5103: Add support for BigInt literals * Fix typos found in testing * Support binary, octal and hex BigInt literals * Make decimal BigInt test consistent other bases * Correct test BigInt test names * Add Node versions to CI * Numeric literal separators (#5215) * implement numeric literal separators * add tests * Revert changes to package-lock.json * small regex adjustment * split tests * add comment * Add Node versions to CI * Fix #5103: Add support for BigInt literals (#5104) * Fix #5103: Add support for BigInt literals * Fix typos found in testing * Support binary, octal and hex BigInt literals * Make decimal BigInt test consistent other bases * Correct test BigInt test names * Add Node versions to CI * Update output * Fix style * support bigint literal with separators * un-disallow property access on number literal * Update output * Refactor numeric literal separator tests to be more like the rest of the tests * Add test for numeric property with underscore Co-authored-by: Geoffrey Booth <GeoffreyBooth@users.noreply.github.com> Co-authored-by: Robert de Forest <guitar.robot@gmail.com> Co-authored-by: Erik Demaine <edemaine@mit.edu> Co-authored-by: Rich Trott <rtrott@gmail.com> Co-authored-by: Robert de Forest <guitar.robot@gmail.com> Co-authored-by: square <Inve1951@users.noreply.github.com>
This commit is contained in:
parent
f528e5e754
commit
56eec0bc4e
|
@ -96,7 +96,7 @@
|
|||
// returns, etc. If we’re lexing literate CoffeeScript, strip external Markdown
|
||||
// by removing all lines that aren’t indented by at least four spaces or a tab.
|
||||
clean(code) {
|
||||
var base1, thusFar;
|
||||
var base, thusFar;
|
||||
thusFar = 0;
|
||||
if (code.charCodeAt(0) === BOM) {
|
||||
code = code.slice(1);
|
||||
|
@ -106,8 +106,8 @@
|
|||
if (WHITESPACE.test(code)) {
|
||||
code = `\n${code}`;
|
||||
this.chunkLine--;
|
||||
if ((base1 = this.locationDataCompensations)[0] == null) {
|
||||
base1[0] = 0;
|
||||
if ((base = this.locationDataCompensations)[0] == null) {
|
||||
base[0] = 0;
|
||||
}
|
||||
this.locationDataCompensations[0] -= 1;
|
||||
}
|
||||
|
@ -296,7 +296,7 @@
|
|||
// Matches numbers, including decimals, hex, and exponential notation.
|
||||
// Be careful not to interfere with ranges in progress.
|
||||
numberToken() {
|
||||
var base, lexedLength, match, number, parsedValue, tag, tokenData;
|
||||
var lexedLength, match, number, parsedValue, tag, tokenData;
|
||||
if (!(match = NUMBER.exec(this.chunk))) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue