wat4wasm 1.1.7 → 1.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.
@@ -49,6 +49,7 @@ export default function (wat) {
49
49
  .replaceAll(/\(l(get|set|tee)(\s)/g, `(local.$1$2`)
50
50
  .replaceAll(/\(g(get|set)(\s)/g, `(global.$1$2`)
51
51
  .replaceAll(/\(t(get|set)(\s)/g, `(table.$1$2`)
52
+ .replaceAll(/\(i64\.secs\s+(\d+)\)/g, `(i64.const $1000000000)`)
52
53
  .replaceAll(/(i32|f32|i64|f64|fun|ext)\((\+|\-|)\s*([0-9\.]+)\)/g, `($1.const $2$3)`)
53
54
  .replaceAll(/\((.*)\.(set|tee)\s+([\+|\-])+\s+(\$.*)\s*\)/g, "($1.$2 $4 (i32.add ($1.get $4) (i32.const $31)))")
54
55
  .replaceAll(/\(apply(?:\.*)(i32|f32|i64|f64|fun|ext|)(\s*)/g, `(call $self.Reflect.apply<ext.ext.ext>$1 $2`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wat4wasm",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/central-network/wat4wasm#readme",
6
6
  "bugs": {
package/wat4wasm CHANGED
@@ -1524,6 +1524,7 @@ function REPLACE_ALL (wat) {
1524
1524
  .replaceAll(/\(l(get|set|tee)(\s)/g, `(local.$1$2`)
1525
1525
  .replaceAll(/\(g(get|set)(\s)/g, `(global.$1$2`)
1526
1526
  .replaceAll(/\(t(get|set)(\s)/g, `(table.$1$2`)
1527
+ .replaceAll(/\(i64\.secs\s+(\d+)\)/g, `(i64.const $1000000000)`)
1527
1528
  .replaceAll(/(i32|f32|i64|f64|fun|ext)\((\+|\-|)\s*([0-9\.]+)\)/g, `($1.const $2$3)`)
1528
1529
  .replaceAll(/\((.*)\.(set|tee)\s+([\+|\-])+\s+(\$.*)\s*\)/g, "($1.$2 $4 (i32.add ($1.get $4) (i32.const $31)))")
1529
1530
  .replaceAll(/\(apply(?:\.*)(i32|f32|i64|f64|fun|ext|)(\s*)/g, `(call $self.Reflect.apply<ext.ext.ext>$1 $2`)