Add decimal parsing support (#11640)
* docs: add DecimalLiteral to AST spec * add decimal support * fix: throw invalid decimal on start * add DecimalLiteral type definitions * update parser typings * add generator support * add syntax-decimal plugin * Add syntax-decimal to babel-standalone * add syntax-decimal to missing plugin helpers * fix incorrect test macro
This commit is contained in:
1
packages/babel-parser/test/fixtures/experimental/decimal/invalid-binary/input.js
vendored
Normal file
1
packages/babel-parser/test/fixtures/experimental/decimal/invalid-binary/input.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
0b101011101m
|
||||
6
packages/babel-parser/test/fixtures/experimental/decimal/invalid-binary/options.json
vendored
Normal file
6
packages/babel-parser/test/fixtures/experimental/decimal/invalid-binary/options.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
"decimal"
|
||||
],
|
||||
"throws": "Invalid decimal (1:0)"
|
||||
}
|
||||
Reference in New Issue
Block a user