- Error stack traces now factor in source maps from compiled languages (TypeScript, Coffeescript, etc)!
- Workers now have access to all YavaScript global APIs!
- Use the global
Workerto get YavaScript globals. For the more limited-scope QuickJS worker, userequire("quickjs:os").Worker.
- Use the global
- Added
runInWorker(goroutine-like Worker wrapper function) - Worker constructors now accept an optional
initialDataproperty which will be synchronously structured-cloned into the Worker as the static propertyWorker.initialData, available when the Worker module runs - Worker constructors now accept an optional
overrideCodeproperty which will be used as the source code for the provided worker module path instead of reading the source code from disk yavascript-bootstrapnow leverages precompiled bytecode for YavaScript global APIs, which dramatically improves startup time- Added
grepArrayandArray.prototype.grep parseScriptArgscan now gather repeated flag invocations together into an Array
Full Changelog: v0.16.0...v0.17.0