Skip to content

TypeError: module.runPass is not a function #2004

Closed
@yyxy

Description

@yyxy

Please help:

`$ asc Index.ts -o test.wasm --trapMode clamp

TypeError: module.runPass is not a function at stats.optimizeTime.measure (E:\test\assemblyscript\cli\asc.js:884:14) at measure (E:\test\assemblyscript\cli\asc.js:1331:3) at Object.main (E:\test\assemblyscript\cli\asc.js:883:27) at asc.ready.then (E:\test\assemblyscript\bin\asc:19:47) at process._tickCallback (internal/process/next_tick.js:68:7) at Function.Module.runMain (internal/modules/cjs/loader.js:834:11) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) E:\test\assemblyscript\node_modules\binaryen\index.js:33 function Oa(){var b=a.preRun.shift();Ka.unshift(b)}var Pa=0,Qa=null,Ra=null;a.preloadedImages={};a.preloadedAudios={};function p(b){if(a.onAbort)a.onAbort(b);t(b);Ba=!0;throw new Aa("abort("+b+"). Build with -s ASSERTIONS=1 for more info.");}var Sa="dat a:application/octet-stream;base64,",Ta;Ta="<<< WASM_BINARY_FILE >>>";if(!Ta.startsWith(Sa)){var Ua=Ta;Ta=a.locateFile?a.locateFile(Ua,n):n+Ua} ^ Error: abort(TypeError: module.runPass is not a function). Build with -s ASSERTIONS=1 for more info. at process.p (E:\test\assemblyscript\node_modules\binaryen\index.js:33:176) at process.emit (events.js:198:13) at process.emit (E:\test\assemblyscript\node_modules\source-map-support\source-map-support.js:495:21) at emitPromiseRejectionWarnings (internal/process/promises.js:140:18) at process._tickCallback (internal/process/next_tick.js:69:34) at Function.Module.runMain (internal/modules/cjs/loader.js:834:11) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)`

An error occurred when adding clamp paramete, why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions