1
1
mirror of https://github.com/tweag/asterius.git synced 2024-09-19 04:47:56 +03:00

freeJSValzh should be idempotent

This commit is contained in:
Cheng Shao 2021-01-18 13:51:40 +00:00
parent 7d5892910f
commit 48dd18196e

View File

@ -23,8 +23,6 @@ export class JSValManager {
}
freeJSValzh(c) {
if (!this.closure2Val.delete(c)) {
throw new WebAssembly.RuntimeError(`Invalid JSVal# 0x${c.toString(16)}`);
}
this.closure2Val.delete(c);
}
}