blob: 6ba70e121008f1efe40990d3e22e9a0526ece3f4 (
plain)
1
2
3
4
5
6
7
|
// for-of throws if the target is an ArrayBuffer.
load(libdir + "asserts.js");
assertThrowsInstanceOf(function () {
for (var v of new Int8Array([0, 1, 2, 3]).buffer)
throw "FAIL";
}, TypeError);
|