diff options
author | 2021-04-26 00:34:45 -0700 | |
---|---|---|
committer | 2021-04-26 00:34:45 -0700 | |
commit | 568db047a3ed5ecfe625ba0b8d3195f82c843424 (patch) | |
tree | 804ff6e6a7c4d805c728c171bc71f87a800d82c7 /src/js_parser.zig | |
parent | 19ab1672cac20e68937038ae8e85df7d51348bff (diff) | |
download | bun-568db047a3ed5ecfe625ba0b8d3195f82c843424.tar.gz bun-568db047a3ed5ecfe625ba0b8d3195f82c843424.tar.zst bun-568db047a3ed5ecfe625ba0b8d3195f82c843424.zip |
wap
Diffstat (limited to 'src/js_parser.zig')
-rw-r--r-- | src/js_parser.zig | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/js_parser.zig b/src/js_parser.zig index e32adc859..44cb5e036 100644 --- a/src/js_parser.zig +++ b/src/js_parser.zig @@ -405,8 +405,15 @@ pub const Parser = struct { // Pop the module scope to apply the "ContainsDirectEval" rules p.popScope(); - result = p.toAST(parts); - result.source_map_comment = p.lexer.source_mapping_url; + result.ast = js_ast.Ast{ + .parts = parts.toOwnedSlice(), + .symbols = p.symbols.toOwnedSlice(), + .module_scope = p.module_scope.*, + }; + result.ok = true; + + // result = p.toAST(parts); + // result.source_map_comment = p.lexer.source_mapping_url; } return result; |