Debian Codegraph @

js/src/jit-test/tests/ctypes/argument-type-function.js

raw
1 load(libdir + 'asserts.js');
2
3 function test() {
4 assertTypeErrorMessage(() => { ctypes.FunctionType(ctypes.default_abi, ctypes.int32_t, 1); },
5 "third argument of FunctionType must be an array");
6 }
7
8 if (typeof ctypes === "object")
9 test();