test262/implementation-contributed/javascriptcore/stress/compare-eq-should-use-known-other-use.js
test262-automation 24f861721f [javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files.
sourceRevisionAtLastExport: 8bfa53d50 targetRevisionAtLastExport: 8bc4e38a
2018-07-29 23:55:12 -04:00

30 lines
569 B
JavaScript

function bar(testArgs) {
(() => {
try {
testArgs.func.call(1);
} catch (e) {
if (!testArgs.qux) {
return e == testArgs.qux;
}
}
})();
}
for (var i = 0; i < 100000; i++) {
[
{
func: ()=>{},
},
{
func: Int8Array.prototype.values,
foo: 0
},
{
func: Int8Array.prototype.values,
qux: 2
},
{
func: Int8Array.prototype.values,
},
].forEach(bar);
}