Debian Codegraph @

js/src/jit-test/tests/ctypes/bug1155985.js

raw
1 function test() {
2 for (let i = 0; i < 100; i++) {
3 let test_struct = ctypes.StructType("test_struct", [{ "x": ctypes.int32_t },
4 { "bar": ctypes.uint32_t }]);
5
6 try {
7 new test_struct("foo", "x");
8 } catch (e) {
9 }
10 }
11 }
12
13 if (typeof ctypes === "object")
14 test();