Skip to content

Bug: time elapsed is not a function #6

@henricattoire

Description

@henricattoire

Problem:

Run vuurwerk in debug mode and go back in time to a point where a firework is gliding in the air. Then remove the future and try to continue running the program. Scratch will give the following error:

Uncaught TypeError TypeError: util.stackFrame.timer.timeElapsed is not a function
    at glide (/Users/.../C002309-thesis/ugent-Scratch/blink/scratch-vm/src/blocks/scratch3_motion.js:146:1)
    at execute (/Users/.../C002309-thesis/ugent-Scratch/blink/scratch-vm/src/engine/execute.js:518:1)
    at stepThread (/Users/.../C002309-thesis/ugent-Scratch/blink/scratch-vm/src/engine/sequencer.js:245:1)
    at stepThreads (/Users/.../C002309-thesis/ugent-Scratch/blink/scratch-vm/src/engine/sequencer.js:134:1)
    at _step (/Users/.../C002309-thesis/ugent-Scratch/blink/scratch-vm/src/engine/runtime.js:2149:1)
    at vm.runtime._step (/Users/.../C002309-thesis/ugent-Scratch/blink/itch/packages/core/src/context.ts:135:25)
    at <anonymous> (/Users/.../C002309-thesis/ugent-Scratch/blink/scratch-vm/src/engine/runtime.js:2753:1)

It seems like the logger is not properly logging the stackframe timer.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions