Sign in
cobalt
/
cobalt
/
308ed6b84664d59944cd65f4b4359c28a2443be6
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ctypes
/
argument-type-function.js
blob: a341415f1d7edbda970c31dbb1e5e2214d6dc058 [
file
] [
log
] [
blame
]
load
(
libdir
+
'asserts.js'
);
function
test
()
{
assertTypeErrorMessage
(()
=>
{
ctypes
.
FunctionType
(
ctypes
.
default_abi
,
ctypes
.
int32_t
,
1
);
},
"third argument of FunctionType must be an array"
);
}
if
(
typeof
ctypes
===
"object"
)
test
();