watr 2.2.0 → 2.2.1
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/package.json +1 -1
- package/src/compile.js +1 -1
package/package.json
CHANGED
package/src/compile.js
CHANGED
|
@@ -352,7 +352,7 @@ const iinit = ([op, literal], ctx) => op[0] === 'f' ?
|
|
|
352
352
|
[op[1] === '3' ? OP_F32_CONST : OP_F64_CONST, ...(op[1] === '3' ? f32 : f64)(literal), OP_END] :
|
|
353
353
|
[op[1] === '3' ? OP_I32_CONST : OP_I64_CONST, ...(op[1] === '3' ? leb : bigleb)(literal[0] === '$' ? ctx.global[literal] : literal), OP_END]
|
|
354
354
|
|
|
355
|
-
const escape = { n: 10, r: 13, t: 9, v: 1 }
|
|
355
|
+
const escape = { n: 10, r: 13, t: 9, v: 1, '\\': 92 }
|
|
356
356
|
|
|
357
357
|
// build string binary
|
|
358
358
|
const str = str => {
|