aboutsummaryrefslogtreecommitdiff
path: root/src/js_parser.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/js_parser.zig')
-rw-r--r--src/js_parser.zig11
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;