diff options
author | 2023-09-15 04:37:13 -0700 | |
---|---|---|
committer | 2023-09-15 04:37:13 -0700 | |
commit | 8c3be19d66002f12e0d4b2b201d6745ea3a9d69b (patch) | |
tree | ec1a9451d49f078bc0c4faf4b2cc0c7529d1bbcd /src/js_ast.zig | |
parent | 92f2d9ab27fd2ab61b8bcfe8c0b42c7d6b90cdcf (diff) | |
download | bun-revert-5167-dylan/decode-regex-if-needed.tar.gz bun-revert-5167-dylan/decode-regex-if-needed.tar.zst bun-revert-5167-dylan/decode-regex-if-needed.zip |
Revert "decode regex if needed (#5167)"revert-5167-dylan/decode-regex-if-needed
This reverts commit 32664df254be225dd195fcaf46994f0c550f9d22.
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r-- | src/js_ast.zig | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig index d4a3b1d92..7811541f4 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -2538,10 +2538,7 @@ pub const E = struct { }; pub const RegExp = struct { - data: union(enum) { - raw: string, - decoded: bun.BabyList(u16), - }, + value: string, // This exists for JavaScript bindings // The RegExp constructor expects flags as a second argument. @@ -2551,7 +2548,7 @@ pub const E = struct { // ^ flags_offset: ?u16 = null, - pub var empty = RegExp{ .data = .{ .raw = "" } }; + pub var empty = RegExp{ .value = "" }; pub fn pattern(this: RegExp) string { |