diff options
Diffstat (limited to 'test_ffi/tests/test.js')
-rw-r--r-- | test_ffi/tests/test.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test_ffi/tests/test.js b/test_ffi/tests/test.js index 5e193e99f..f4fc96a1b 100644 --- a/test_ffi/tests/test.js +++ b/test_ffi/tests/test.js @@ -252,6 +252,7 @@ const dylib = Deno.dlopen(libPath, { */ "static_char": { type: "pointer", + optional: true, }, "hash": { parameters: ["buffer", "u32"], result: "u32" }, make_rect: { @@ -281,6 +282,22 @@ const dylib = Deno.dlopen(libPath, { print_mixed: { parameters: [{ struct: Mixed }], result: "void", + optional: true, + }, + non_existent_symbol: { + parameters: [], + result: "void", + optional: true, + }, + non_existent_nonblocking_symbol: { + parameters: [], + result: "void", + nonblocking: true, + optional: true, + }, + non_existent_static: { + type: "u32", + optional: true, }, }); const { symbols } = dylib; |