blob: 3837c51de73577c8b0cf49df057ee508df41b6da [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
var f = Symbol("Cocoa");
function foo(o) {
return o[f];
}
function bar(a) {
var result = 0;
for (var i = 0; i < 2000000; ++i) {
for (var j = 0; j < a.length; ++j)
result += foo(a[j]);
}
return result;
}
function Foo() {
}
Foo.prototype[f] = 42;
var result = bar([new Foo(), {[f]:24}]);
if (result != 132000000)
throw "Error bad result: " + result;