Skip to content

Commit

Permalink
fixup! wasi: add missing validator
Browse files Browse the repository at this point in the history
  • Loading branch information
VoltrexKeyva authored Jun 18, 2021
1 parent ff75348 commit 53d44b6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/wasi.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,11 @@ class WASI {

const { _start, _initialize } = this[kInstance].exports;

validateUndefined(_start, 'start');
if (_initialize !== undefined) {
validateFunction(
_initialize, 'instance.exports._initialize');
}
validateUndefined(
_start, 'instance.exports._start');

if (_initialize !== undefined) {
_initialize();
_initialize();
}
}
}
Expand Down

0 comments on commit 53d44b6

Please sign in to comment.