diff options
author | 2021-10-24 16:11:06 -0700 | |
---|---|---|
committer | 2021-10-24 16:11:06 -0700 | |
commit | c93655c7174c95c594893d38903a47813079ac18 (patch) | |
tree | 4f8497bf968b441821c37ffdd97ffc8366fe2fd1 /src | |
parent | 6f6510169e46d2741baf45f96f06d7254ceb0947 (diff) | |
download | bun-c93655c7174c95c594893d38903a47813079ac18.tar.gz bun-c93655c7174c95c594893d38903a47813079ac18.tar.zst bun-c93655c7174c95c594893d38903a47813079ac18.zip |
Fix build error
Diffstat (limited to 'src')
-rw-r--r-- | src/js_parser/js_parser.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js_parser/js_parser.zig b/src/js_parser/js_parser.zig index e135c3f7d..438ae5f93 100644 --- a/src/js_parser/js_parser.zig +++ b/src/js_parser/js_parser.zig @@ -6939,11 +6939,11 @@ pub fn NewParser( return; } - try p.log.addError(p.source, value.loc, p.allocator, comptime std.fmt.comptimePrint("for-{s} loop variables cannot have an initializer", .{loop_type})); + try p.log.addError(p.source, value.loc, comptime std.fmt.comptimePrint("for-{s} loop variables cannot have an initializer", .{loop_type})); } }, else => { - try p.log.addError(p.source, decls[0].binding.loc, p.allocator, comptime std.fmt.comptimePrint("for-{s} loops must have a single declaration", .{loop_type})); + try p.log.addError(p.source, decls[0].binding.loc, comptime std.fmt.comptimePrint("for-{s} loops must have a single declaration", .{loop_type})); }, } } @@ -7538,10 +7538,10 @@ pub fn NewParser( if (!str.prefer_template) { isDirectivePrologue = true; - if (strings.eqlUtf16("use strict", str.value)) { + if (str.eql(string, "use strict")) { // Track "use strict" directives p.current_scope.strict_mode = .explicit_strict_mode; - } else if (strings.eqlUtf16("use asm", str.value)) { + } else if (str.eql(string, "use asm")) { stmt.data = Prefill.Data.SEmpty; } } |