summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangqing Jing <changqing.jing@bmw.com>2024-01-17 06:33:09 +0800
committerGitHub <noreply@github.com>2024-01-16 14:33:09 -0800
commitd7ee845700dfbc83116be119a1be91abad15acf1 (patch)
tree18952a5c2b03bef7f81ec5fbc4612836aa8b5652
parent118fb9b274dd11f7a896412046f9e599e1a58681 (diff)
downloadwabt-d7ee845700dfbc83116be119a1be91abad15acf1.tar.gz
wabt-d7ee845700dfbc83116be119a1be91abad15acf1.tar.bz2
wabt-d7ee845700dfbc83116be119a1be91abad15acf1.zip
Fix Features of wabt.post.js can't work in strict mode (#2365)
-rw-r--r--src/wabt.post.js2
1 files changed, 1 insertions, 1 deletions
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);
}
}