🚀 just uploaded (link in reply): Imperative Bowling Kata - 20 Years On - Delegating Menial Tasks to Github Copilot Chat - using Scala in IntelliJ IDEA #scala #TDD #refactoring #github_copilot #code_kata
@scala_lang
@scala_lang
I was surprised to see that the worker threads run in non-strict mode by default.This should rarely happen, because when using ES modules (ESMs), classes or `"use strict"` then the engine forces strict mode.I didn't know this in the beginning.I have been working on the katas I use for this site in the [javascript-katas repo](https://codeberg.org/wolframkriesing/javascript-katas) which uses ESMs and `type=module`, my default. This makes the entire nodejs project, any `npm ...` command run use strict mode.Escaping from strict mode is not easily possible, but one way to run code in non-strict mode is by using a worker thread.