Using --import-bindings=optimized (note the single quotes inside single quote string):
...
if (!getStderr[symbolCabiLower]) {
throw new TypeError('import for "wasi:cli/stderr@0.2.0" does not define a Symbol.for('cabiLower') optimized binding');
} // ^^^ ^^^ here
trampoline10 = getStderr[symbolCabiLower]( resourceTables: [handleTable3],);
if (!getStdin[symbolCabiLower]) {
throw new TypeError('import for "wasi:cli/stdin@0.2.0" does not define a Symbol.for('cabiLower') optimized binding');
} // ^^^ ^^^ here
trampoline13 = getStdin[symbolCabiLower]( resourceTables: [handleTable2],);
if (!getStdout[symbolCabiLower]) {
throw new TypeError('import for "wasi:cli/stdout@0.2.0" does not define a Symbol.for('cabiLower') optimized binding');
} // ^^^ ^^^ here
trampoline14 = getStdout[symbolCabiLower]( resourceTables: [handleTable3],);
if (!exit[symbolCabiLower]) {
throw new TypeError('import for "wasi:cli/exit@0.2.0" does not define a Symbol.for('cabiLower') optimized binding');
} // ^^^ ^^^ here
...
Using
--import-bindings=direct-optimized
:Using
--import-bindings=optimized
(note the single quotes inside single quote string):