10 lines
248 B
JavaScript
10 lines
248 B
JavaScript
|
load(libdir + 'asserts.js');
|
||
|
|
||
|
function test() {
|
||
|
assertTypeErrorMessage(() => { ctypes.default_abi.toSource.call(1); },
|
||
|
"ABI.prototype.toSource called on incompatible Number");
|
||
|
}
|
||
|
|
||
|
if (typeof ctypes === "object")
|
||
|
test();
|