mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibJS: Correcly handle surrogates in escape()
Fixes test/annexB/built-ins/escape/escape-above{,-astral}.js in test262. All tests in test/annexB/built-ins/escape pass now.
This commit is contained in:
parent
95b8c1745a
commit
23cde7685c
Notes:
sideshowbarker
2024-07-17 20:55:16 +09:00
Author: https://github.com/nico
Commit: 23cde7685c
Pull-request: https://github.com/SerenityOS/serenity/pull/11883
Reviewed-by: https://github.com/davidot ✅
2 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,7 @@ test("escape", () => {
|
|||
["äöü", "%E4%F6%FC"],
|
||||
["ć", "%u0107"],
|
||||
["@*_+-./", "@*_+-./"],
|
||||
["\ud834\udf06", "%uD834%uDF06"],
|
||||
].forEach(test => {
|
||||
expect(escape(test[0])).toBe(test[1]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue