lshlyapnikov d51f539d1a 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
2019-11-06 12:37:26 -06:00

7 lines
144 B
JavaScript

// Used for `Array.rs` tests
exports.populate_array = function(arr, start, len) {
for (i = 0; i < len; i++) {
arr[i] = start + i;
}
};