@supraio/client-daemon-js 0.0.1-changedeploystructure.6 → 0.0.1-master.11

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.
Binary file
package/wasm_exec.js CHANGED
@@ -564,6 +564,13 @@
564
564
  offset += 8;
565
565
  });
566
566
 
567
+ // The linker guarantees global data starts from at least wasmMinDataAddr.
568
+ // Keep in sync with cmd/link/internal/ld/data.go:wasmMinDataAddr.
569
+ const wasmMinDataAddr = 4096 + 8192;
570
+ if (offset >= wasmMinDataAddr) {
571
+ throw new Error("total length of command line and environment variables exceeds limit");
572
+ }
573
+
567
574
  this._inst.exports.run(argc, argv);
568
575
  if (this.exited) {
569
576
  this._resolveExitPromise();