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:
parent
7d5892910f
commit
48dd18196e
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user