blob: 922082eff03147fe618f29cc20f475f39f72cf48 [file] [log] [blame]
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);