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

function test() {
  assertTypeErrorMessage(() => { ctypes.FunctionType(ctypes.default_abi, ctypes.int32_t, 1); },
                         "third argument of FunctionType must be an array");
}

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