Skip to content

Encounter an compiler error after translate a TS lib to assemblyscript #2611

Closed
@DeanHH

Description

@DeanHH

Here is the error info:
/Users/dean/assemblyscript/std/portable/index.js:198
throw new AssertionError(message);
^

AssertionError: assertion failed
at null.Y.assert (/Users/dean/assemblyscript/std/portable/index.js:198:11)
at sr.visitElement (/Users/dean/assemblyscript/src/bindings/util.ts:116:16)
at sr.visitFile (/Users/dean/assemblyscript/src/bindings/util.ts:58:14)
at sr.visitFile (/Users/dean/assemblyscript/src/bindings/util.ts:65:14)
at sr.walk (/Users/dean/assemblyscript/src/bindings/util.ts:46:64)
at sr.build (/Users/dean/assemblyscript/src/bindings/tsd.ts:201:10)
at Function.build (/Users/dean/assemblyscript/src/bindings/tsd.ts:41:41)
at Module.XS (/Users/dean/assemblyscript/src/index-wasm.ts:363:21)
at Module.Mn (/Users/dean/assemblyscript/cli/index.js:974:35)
at async file:///Users/dean/assemblyscript/bin/asc.js:33:22

I'am trying to Translate https://github.com/EsotericSoftware/spine-runtimes/tree/4.1/spine-ts/spine-core to assemblyscript. Some moduler like Texutre and AssetManager has been removed and hunders of error has been fixed, but still get lots of warnings and all of them are like:"WARNING AS235: Only variables, functions and enums become WebAssembly module exports.".

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