blob: a6823fe5ce8cc396dce54bf638195c179fdb0a68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
load(libdir + 'asserts.js');
function test() {
let obj = {
toSource() {
throw 1;
}
};
assertTypeErrorMessage(() => { ctypes.double().value = obj; },
"can't convert <<error converting value to string>> to the type double");
}
if (typeof ctypes === "object")
test();
|