blob: 920512caa9c3edae9276041d7f968e19a5713c32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// |jit-test| skip-if: !this.hasOwnProperty("Tuple")
function f() {
var expected = #[1, "monkeys", 3];
assertEq(#[1,2,3].with(1, "monkeys"), expected);
assertEq(Object(#[1,2,3]).with(1, "monkeys"), expected);
}
for (i = 0; i < 500; i++) {
f();
}
|