summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ctypes/argument-length-abi.js
blob: 16179765ce7f928a069dd580de9908cce12536b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| skip-if: !this.ctypes || !ctypes.default_abi.toSource

load(libdir + 'asserts.js');

function test() {
  assertTypeErrorMessage(() => { ctypes.default_abi.toSource(1); },
                         "ABI.prototype.toSource takes no arguments");
}

if (typeof ctypes === "object")
  test();