mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-18 15:31:25 +00:00
Add an unsafe method view_mut_raw (#1850)
* adding .vscode folder to .gitignore * Adding view_mut_raw to generated arrays * test populating rust vector from JS function * Uint32Array test, need to make it generic * Add doc + more test cases * replacing macro-generated tests with generic test function it is cleaner, safer and better that way * improving rustdoc
This commit is contained in:
committed by
Alex Crichton
parent
e7bfa161e0
commit
d51f539d1a
6
crates/js-sys/tests/wasm/Array.js
Normal file
6
crates/js-sys/tests/wasm/Array.js
Normal file
@ -0,0 +1,6 @@
|
||||
// Used for `Array.rs` tests
|
||||
exports.populate_array = function(arr, start, len) {
|
||||
for (i = 0; i < len; i++) {
|
||||
arr[i] = start + i;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user