MCPcopy Index your code
hub / github.com/nodejs/node / start

Method start

lib/wasi.js:129–146  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

127
128 // Must not export _initialize, must export _start
129 start(instance) {
130 this.finalizeBindings(instance);
131
132 const { _start, _initialize } = this[kInstance].exports;
133
134 validateFunction(_start, 'instance.exports._start');
135 validateUndefined(_initialize, 'instance.exports._initialize');
136
137 try {
138 _start();
139 } catch (err) {
140 if (err !== kExitCode) {
141 throw err;
142 }
143 }
144
145 return this[kExitCode];
146 }
147
148 // Must not export _start, may optionally export _initialize
149 initialize(instance) {

Callers 1

goFunction · 0.95

Calls 2

finalizeBindingsMethod · 0.95
_startFunction · 0.50

Tested by

no test coverage detected