blob: d1f9072ddc8a3b0dfc95da50c21d2fde9ca837e9 [file] [log] [blame]
//@ runBigIntEnabled
var assert = {
sameValue: function (input, expected) {
if (input !== expected)
throw new Error('Expected: ' + expected + ' but got: ' + input);
}
};
var x = {y:1n}
assert.sameValue(x.y, 1n);
x = {y:{z:1n}};
assert.sameValue(x.y.z, 1n);
x = {y:-1212n}
assert.sameValue(x.y, -1212n);
x = {y:{z:-22312n}};
assert.sameValue(x.y.z, -22312n);