mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Slicing array buffers with no args throws on Safari
This commit is contained in:
parent
71333765c9
commit
c46d1157fa
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ class VideoMotion {
|
|||
this.prev = this.curr;
|
||||
// Create a clone of the array so any modifications made to the source
|
||||
// array do not affect the work done in here.
|
||||
this.curr = new Uint32Array(source.buffer.slice());
|
||||
this.curr = new Uint32Array(source.buffer.slice(0));
|
||||
|
||||
// Swap _prev and _curr. Copy one of the color components of the new
|
||||
// array into _curr overwriting what was the old _prev data.
|
||||
|
|
Loading…
Reference in a new issue