@nubjs/nub-linux-arm64 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/nub CHANGED
Binary file
package/bin/nubx CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubjs/nub-linux-arm64",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Nub binary for linux-arm64",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/nubjs/nub",
Binary file
@@ -9,4 +9,4 @@
9
9
  // previously lived as a literal inside preload.mjs, which `make version` patched,
10
10
  // while the worker carried a hand-maintained "…-compat" copy that `make version`
11
11
  // never touched — a latent staleness bug this module closes.)
12
- export const NUB_VERSION = "0.1.6";
12
+ export const NUB_VERSION = "0.1.8";
@@ -114,10 +114,23 @@ export function installWorkerPolyfill() {
114
114
  // the main entry), and there is no classic/importScripts mode. Passing
115
115
  // `type` through to NodeWorker is harmless — it ignores unknown options.
116
116
  // See wiki/research/worker-polyfill.md.
117
+ // Node rejects flags in Worker execArgv that imply V8 `--harmony-*`
118
+ // staging flags (ERR_WORKER_INVALID_EXEC_ARGV). Two categories to strip:
119
+ // 1. `--harmony-*` flags themselves (V8 internals; may land in execArgv
120
+ // on some Node versions when the parent injected an `--experimental-*`
121
+ // that implies them).
122
+ // 2. `--experimental-shadow-realm` — implies `--harmony-shadow-realm`
123
+ // (Node rejects it for workers even though the flag name is not
124
+ // `--harmony-*`). This is the only nub-injected experimental flag
125
+ // that has this property; other experimentals nub injects
126
+ // (--experimental-vm-modules, --experimental-wasm-modules, etc.) are
127
+ // fine in worker execArgv. Extend this filter if Node adds more.
117
128
  this.#worker = new NodeWorker(workerPath, {
118
129
  ...options,
119
130
  eval: false,
120
- execArgv: process.execArgv,
131
+ execArgv: process.execArgv.filter(
132
+ f => !f.startsWith("--harmony") && f !== "--experimental-shadow-realm"
133
+ ),
121
134
  });
122
135
 
123
136
  this.#worker.on("message", (data) => {