summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ctypes/argument-length-ctypes.js
blob: 84b0b9ea54dfc6100fdb8afd0ca4811c5899a75c (plain)
1
2
3
4
5
6
7
8
9
10
11
load(libdir + 'asserts.js');

function test() {
  assertTypeErrorMessage(() => { ctypes.cast(); },
                         "ctypes.cast takes two arguments");
  assertTypeErrorMessage(() => { ctypes.getRuntime(); },
                         "ctypes.getRuntime takes one argument");
}

if (typeof ctypes === "object")
  test();