blob: ad75167148e20b473aad2901deaa4e4d364ecc38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
load(libdir + 'asserts.js');
function test() {
assertTypeErrorMessage(() => { ctypes.int32_t.toString.call(1); },
"CType.prototype.toString called on incompatible Number");
assertTypeErrorMessage(() => { ctypes.int32_t.toSource.call(1); },
"CType.prototype.toSource called on incompatible Number");
}
if (typeof ctypes === "object")
test();
|