mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +00:00
LibJS: Parse the RegExp.prototype.hasIndices flag
This commit is contained in:
parent
e801cc7afd
commit
d1e06b00e3
Notes:
sideshowbarker
2024-07-18 09:25:11 +09:00
Author: https://github.com/trflynn89
Commit: d1e06b00e3
Pull-request: https://github.com/SerenityOS/serenity/pull/8596
Reviewed-by: https://github.com/linusg
6 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
test("basic functionality", () => {
|
||||
expect(/foo/.flags).toBe("");
|
||||
expect(/foo/d.flags).toBe("d");
|
||||
expect(/foo/g.flags).toBe("g");
|
||||
expect(/foo/i.flags).toBe("i");
|
||||
expect(/foo/m.flags).toBe("m");
|
||||
|
@ -7,5 +8,5 @@ test("basic functionality", () => {
|
|||
expect(/foo/u.flags).toBe("u");
|
||||
expect(/foo/y.flags).toBe("y");
|
||||
// prettier-ignore
|
||||
expect(/foo/sgimyu.flags).toBe("gimsuy");
|
||||
expect(/foo/dsgimyu.flags).toBe("dgimsuy");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue