mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-19 00:31:52 +00:00
LibJS: Add BigInt
This commit is contained in:
parent
40829b849a
commit
0ff9d7e189
Notes:
sideshowbarker
2024-07-19 05:46:23 +09:00
Author: https://github.com/linusg
Commit: 0ff9d7e189
Pull-request: https://github.com/SerenityOS/serenity/pull/2509
Reviewed-by: https://github.com/alimpfard
32 changed files with 1910 additions and 636 deletions
|
@ -15,6 +15,7 @@ try {
|
|||
duplicate: "world"
|
||||
};
|
||||
assert(o[1] === 23);
|
||||
assert(o[1n] === 23);
|
||||
assert(o["1"] === 23);
|
||||
assert(o.foo === "bar");
|
||||
assert(o["foo"] === "bar");
|
||||
|
@ -30,6 +31,9 @@ try {
|
|||
o[10] = "123";
|
||||
assert(o[10] === "123");
|
||||
assert(o["10"] === "123");
|
||||
o[10n] = "123";
|
||||
assert(o[10] === "123");
|
||||
assert(o["10"] === "123");
|
||||
o[-1] = "hello friends";
|
||||
assert(o[-1] === "hello friends");
|
||||
assert(o["-1"] === "hello friends");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue