You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node ?comments "BigIntLiteral" loc [("value", null); ("bigint", string raw)]
Fix
Translator_intf needs a method similar to regexp that returns null in most implementations, but JsTranslator tries to instantiate a BigInt in flow_parser_js.ml, wrapped in a try/with so it returns null if the JS runtime doesn't support it.
The text was updated successfully, but these errors were encountered:
Flow version: 0.179.0
Expected behavior
The
value
prop of aBigIntLiteral
in ESTree should be a BigInt when usingflow_parser.js
in an environment that supports BigInt.Actual behavior
we always return
null
:flow/src/parser/estree_translator.ml
Line 1324 in c005082
Fix
Translator_intf
needs a method similar toregexp
that returnsnull
in most implementations, butJsTranslator
tries to instantiate aBigInt
in flow_parser_js.ml, wrapped in a try/with so it returns null if the JS runtime doesn't support it.The text was updated successfully, but these errors were encountered: