diff options
author | 2021-06-14 19:45:51 -0700 | |
---|---|---|
committer | 2021-06-14 19:45:51 -0700 | |
commit | 7eb887edd527713214790198de3ccfe828a5768d (patch) | |
tree | d0a782385e6aeccf62b698fe5c15f1833aba3719 /src/string_mutable.zig | |
parent | 122ef023dd642af830a5419b6172640ebf8af841 (diff) | |
download | bun-7eb887edd527713214790198de3ccfe828a5768d.tar.gz bun-7eb887edd527713214790198de3ccfe828a5768d.tar.zst bun-7eb887edd527713214790198de3ccfe828a5768d.zip |
HMR crashily works, started working on CSS Scanner
Former-commit-id: d0f91082fcc8da17d224acb5432339c5d817e1c2
Diffstat (limited to 'src/string_mutable.zig')
-rw-r--r-- | src/string_mutable.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/string_mutable.zig b/src/string_mutable.zig index 1b63bb9e8..25709fd40 100644 --- a/src/string_mutable.zig +++ b/src/string_mutable.zig @@ -2,6 +2,7 @@ const std = @import("std"); const expect = std.testing.expect; usingnamespace @import("string_types.zig"); +const strings = @import("string_immutable.zig"); const js_lexer = @import("js_lexer.zig"); pub const MutableString = struct { @@ -90,7 +91,7 @@ pub const MutableString = struct { } else if (!needs_gap) { needs_gap = true; // skip the code point, replace it with a single _ - i += std.math.max(js_lexer.utf8ByteSequenceLength(slice[i]), 1) - 1; + i += std.math.max(strings.utf8ByteSequenceLength(slice[i]), 1) - 1; } } |