mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 01:47:00 +02:00
Since tagged template literals can inspect the raw string it is not a syntax error to have invalid escapes. However the cooked value should be `undefined`. We accomplish this by tracking whether parse_string_literal fails and then using a NullLiteral (since UndefinedLiteral is not a thing) and finally converting null in tagged template execution to undefined.
200 KiB
200 KiB