This commit is contained in:
Evan
2026-09-07 09:55:36 +08:00
parent 9b6892f2ed
commit badbc11154
9098 changed files with 985321 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
const {test} = require('tap');
const fs = require('fs');
const path = require('path');
const VM = require('../../src/virtual-machine');
const Timer = require('../../src/util/timer');
test('compatibility stack frame is exposed on thread', t => {
const vm = new VM();
vm.loadProject(fs.readFileSync(path.join(__dirname, '../fixtures/tw-glide.sb3'))).then(() => {
vm.greenFlag();
vm.runtime._step();
t.ok(vm.runtime.threads[0].compatibilityStackFrame.timer instanceof Timer);
t.end();
});
});