mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 04:49:06 +00:00
lots
This commit is contained in:
@@ -93,17 +93,7 @@ fn JSONLikeParser(opts: js_lexer.JSONOptions) type {
|
||||
return p.e(E.Null{}, loc);
|
||||
},
|
||||
.t_string_literal => {
|
||||
var str: E.String = undefined;
|
||||
if (p.lexer.string_literal_is_ascii) {
|
||||
str = E.String{
|
||||
.utf8 = p.lexer.string_literal_slice,
|
||||
};
|
||||
} else {
|
||||
const value = p.lexer.stringLiteralUTF16();
|
||||
str = E.String{
|
||||
.value = value,
|
||||
};
|
||||
}
|
||||
var str: E.String = p.lexer.toEString();
|
||||
|
||||
try p.lexer.next();
|
||||
return p.e(str, loc);
|
||||
|
||||
Reference in New Issue
Block a user