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