summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/ArrayBuffer/constructorNotCallable.js
blob: 9df97fe867dbd83c6631d8e172f231df6a246bbd (plain)
1
2
3
4
5
6
7
8
assertThrowsInstanceOf(() => ArrayBuffer(), TypeError);
assertThrowsInstanceOf(() => ArrayBuffer(1), TypeError);
assertThrowsInstanceOf(() => ArrayBuffer.call(null), TypeError);
assertThrowsInstanceOf(() => ArrayBuffer.apply(null, []), TypeError);
assertThrowsInstanceOf(() => Reflect.apply(ArrayBuffer, null, []), TypeError);

if (typeof reportCompare === 'function')
    reportCompare(0,0,"OK");