Debian Codegraph @

js/src/jit-test/tests/ctypes/incompatible-abi.js

raw
1 // |jit-test| skip-if: !this.ctypes || !ctypes.default_abi.toSource
2
3 load(libdir + 'asserts.js');
4
5 function test() {
6 assertTypeErrorMessage(() => { ctypes.default_abi.toSource.call(1); },
7 "ABI.prototype.toSource called on incompatible object, got the number 1");
8 }
9
10 if (typeof ctypes === "object")
11 test();