Open ojj1123 opened 2 months ago
Hermes git revision (if applicable): React Native version: OS: Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64):
code example:
const { parse } = require('hermes-parser'); const ast = parse('import json from "./foo.json" with { type: "json" };');
It outputs the correct AST
SyntaxError: ';' expected (1:30) import json from "./foo.json" with { type: "json" };
This feature is at stage 3 and appears to have changed recently, so we still have the old assert keyword. We can update it to have the new with instead.
assert
with
Bug Description
Hermes git revision (if applicable): React Native version: OS: Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64):
Steps To Reproduce
code example:
The Expected Behavior
It outputs the correct AST
The Current Behavior
Reference