We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff75348 commit 53d44b6Copy full SHA for 53d44b6
lib/wasi.js
@@ -148,15 +148,11 @@ class WASI {
148
149
const { _start, _initialize } = this[kInstance].exports;
150
151
+ validateUndefined(_start, 'start');
152
if (_initialize !== undefined) {
153
validateFunction(
154
_initialize, 'instance.exports._initialize');
- }
155
- validateUndefined(
156
- _start, 'instance.exports._start');
157
-
158
- if (_initialize !== undefined) {
159
- _initialize();
+ _initialize();
160
}
161
162
0 commit comments