From the list of remaining breaking changes, this PR implements the one and only remaining case where the Neon API uses a u32 but should use a usize: JsArray::new().
I did an audit of all other occurrences of u32 in the codebase and all the remaining instances are fine:
Object indexed properties -- the JS semantics explicitly defines this for u32 only
From the list of remaining breaking changes, this PR implements the one and only remaining case where the Neon API uses a
u32
but should use ausize
:JsArray::new()
.I did an audit of all other occurrences of
u32
in the codebase and all the remaining instances are fine:JsArray::len()
-- Node-API exposes this asu32
ref
/unref
-- Node-API exposes this asu32
u32
Finalize
implementation foru32
-- this is just predefined on a bunch of Rust primitive types