ziex 0.1.0-dev.1151 → 0.1.0-dev.1177

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.
@@ -158,6 +158,10 @@ class ZigJS {
158
158
  view.setUint32(out + 4, NAN_PREFIX, true);
159
159
  return;
160
160
  }
161
+ if (typeof val === "bigint") {
162
+ view.setFloat64(out, Number(val), true);
163
+ return;
164
+ }
161
165
  let id = this.idPool.pop();
162
166
  if (id === undefined) {
163
167
  id = this.values.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ziex",
3
- "version": "0.1.0-dev.1151",
3
+ "version": "0.1.0-dev.1177",
4
4
  "description": "ZX is a framework for building web applications with Zig.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  "license": "MIT",
38
38
  "scripts": {},
39
39
  "dependencies": {
40
- "@ziex/cli": "0.1.0-dev.1151"
40
+ "@ziex/cli": "0.1.0-dev.1177"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "react": {
package/wasm/index.js CHANGED
@@ -158,6 +158,10 @@ class ZigJS {
158
158
  view.setUint32(out + 4, NAN_PREFIX, true);
159
159
  return;
160
160
  }
161
+ if (typeof val === "bigint") {
162
+ view.setFloat64(out, Number(val), true);
163
+ return;
164
+ }
161
165
  let id = this.idPool.pop();
162
166
  if (id === undefined) {
163
167
  id = this.values.length;
package/wasm/init.js CHANGED
@@ -143,6 +143,10 @@ class ZigJS {
143
143
  view.setUint32(out + 4, NAN_PREFIX, true);
144
144
  return;
145
145
  }
146
+ if (typeof val === "bigint") {
147
+ view.setFloat64(out, Number(val), true);
148
+ return;
149
+ }
146
150
  let id = this.idPool.pop();
147
151
  if (id === undefined) {
148
152
  id = this.values.length;