LivelyKernel / lively4-core

A Self-supporting, Web-based Development Environment
https://lively-kernel.org/lively4/lively4-core/start.html
MIT License
76 stars 25 forks source link

Workspace executes twice if an error is thrown #375

Closed onsetsu closed 5 years ago

onsetsu commented 5 years ago

First create a tracking variable

var i = 0

Then, execute this minimal example:

console.log('hello'+i++); throw new Error()

The code is executed twice; with the error being shown only once.

image