mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-13 06:49:19 -04:00
Add references to runtime to constructor calls for Sprite, Target, and RenderedTarget so blocks get created properly.
This commit is contained in:
parent
7ac8721aa5
commit
e0b0d35b46
7 changed files with 90 additions and 78 deletions
test/unit
|
@ -67,7 +67,7 @@ const generateBlockInput = function (id, next, inp) {
|
|||
};
|
||||
|
||||
const generateThread = function (runtime) {
|
||||
const s = new Sprite();
|
||||
const s = new Sprite(null, runtime);
|
||||
const rt = new RenderedTarget(s, runtime);
|
||||
const th = new Thread(randomString());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue