Debian Codegraph @

js/src/jit-test/tests/ctypes/construct.js

raw
1 load(libdir + 'asserts.js');
2
3 function test() {
4 assertTypeErrorMessage(() => { ctypes.void_t(); },
5 "cannot construct from void_t");
6 assertTypeErrorMessage(() => { ctypes.CType(); },
7 "cannot construct from abstract type");
8 }
9
10 if (typeof ctypes === "object")
11 test();