swc/tests/source_map_inline.js
강동윤 c7b12cd408
Fix bugs (#718)
- Handle inline source map (Closes #706)
 - Fix parsing of conditional expression starting with async (Closes #706)
2020-03-13 23:34:36 +09:00

8 lines
182 B
JavaScript

const validate = require('sourcemap-validator');
const fs = require('fs');
const jsFile = process.argv[1];
const jsContent = fs.readFileSync(jsFile, 'utf-8');
validate(jsContent);