summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ctypes/argument-length-abi.js
blob: a18a8059ed65ed800ee1bda3441ef29f88b9a22b (plain)
1
2
3
4
5
6
7
8
9
load(libdir + 'asserts.js');

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

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