| commit | cebe6cf3db637204b8d1d5c8db966ced7ad07e0c | [log] [tgz] |
|---|---|---|
| author | Alon Zakai <[email protected]> | Tue Apr 28 20:18:43 2020 |
| committer | Alon Zakai <[email protected]> | Tue Apr 28 20:18:43 2020 |
| tree | 285cb3f159fe63a9c59f237c8398f1ba823fdea0 | |
| parent | 0bc1aee3df0e1bf2150fcb922297cd7d71051539 [diff] |
prefer subarray over Array.prototype
diff --git a/src/runtime_init_memory.js b/src/runtime_init_memory.js index c5d3412..fc6bbf5 100644 --- a/src/runtime_init_memory.js +++ b/src/runtime_init_memory.js
@@ -100,7 +100,7 @@ if (!typedArray.prototype.slice) { Object.defineProperty(typedArray.prototype, 'slice', { value: function(begin, end) { - return new typedArray(Array.prototype.slice.call(this, begin, end)); + return new typedArray(this.subarray(begin, end)); } }); }