mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibJS: Add BigInt
This commit is contained in:
committed by
Andreas Kling
parent
40829b849a
commit
0ff9d7e189
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user