From d7ee845700dfbc83116be119a1be91abad15acf1 Mon Sep 17 00:00:00 2001 From: Changqing Jing Date: Wed, 17 Jan 2024 06:33:09 +0800 Subject: Fix Features of wabt.post.js can't work in strict mode (#2365) --- src/wabt.post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wabt.post.js b/src/wabt.post.js index 7ed0cb21..a89b08d4 100644 --- a/src/wabt.post.js +++ b/src/wabt.post.js @@ -95,7 +95,7 @@ function allocateCString(s) { /// Features function Features(obj) { this.addr = Module._wabt_new_features(); - for ([f, v] of Object.entries(FEATURES)) { + for (var [f, v] of Object.entries(FEATURES)) { this[f] = booleanOrDefault(obj[f], v); } } -- cgit v1.2.3