blob: 2d9cc0ce792fc367606c70c01ceed84ebaabd74e (
plain)
1
2
3
4
5
6
7
8
9
|
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();
|