summaryrefslogtreecommitdiff
path: root/test_ffi/tests/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test_ffi/tests/test.js')
-rw-r--r--test_ffi/tests/test.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test_ffi/tests/test.js b/test_ffi/tests/test.js
index 6bf3c47f8..0af94b906 100644
--- a/test_ffi/tests/test.js
+++ b/test_ffi/tests/test.js
@@ -515,6 +515,7 @@ logCallback.unref();
console.log("Thread safe call counter:", counter);
returnU8Callback.ref();
await dylib.symbols.call_fn_ptr_return_u8_thread_safe(returnU8Callback.pointer);
+// Purposefully do not unref returnU8Callback: Instead use it to test close() unrefing.
// Test statics
console.log("Static u32:", dylib.symbols.static_u32);
@@ -585,7 +586,7 @@ After: ${postStr}`,
})();
function assertIsOptimized(fn) {
- const status = % GetOptimizationStatus(fn);
+ const status = %GetOptimizationStatus(fn);
assert(status & (1 << 4), `expected ${fn.name} to be optimized, but wasn't`);
}