mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
Revert "Push reported"
This commit is contained in:
parent
0e4e6be9e7
commit
107adad647
8 changed files with 66 additions and 199 deletions
|
@ -91,8 +91,7 @@ const generateThread = function (runtime) {
|
|||
rt.blocks.createBlock(generateBlock(next));
|
||||
th.pushStack(next);
|
||||
th.target = rt;
|
||||
th.blockContainer = rt.blocks;
|
||||
|
||||
|
||||
runtime.threads.push(th);
|
||||
|
||||
return th;
|
||||
|
|
|
@ -89,8 +89,8 @@ test('pushReportedValue', t => {
|
|||
th.pushStack('arbitraryString');
|
||||
th.pushStack('secondString');
|
||||
th.pushReportedValue('value');
|
||||
t.strictEquals(th.peekParentStackFrame().justReported, 'value');
|
||||
|
||||
t.strictEquals(th.peekParentStackFrame().reported.null, 'value');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue