%TypedArray%.prototype.indexOf is coercing non-integers or non-floats to numbers...
[WebKit-https.git] / Source / JavaScriptCore / tests / stress / typedarray-includes.js
1 load("resources/typedarray-test-helper-functions.js");
2
3 for (constructor of typedArrays) {
4     let a = new constructor(10);
5     passed = true;
6     result = a.includes({ valueOf() { passed = false; return 1; } });
7     shouldBeTrue("passed");
8     shouldBeFalse("result");
9 }
10 finishJSTest();