Skip to content

wasm-validator error: i64 != i32: binary child types must be equal #1911

Closed
@yjhmelody

Description

@yjhmelody
  [TestFile.ts] ..\..\node_modules\@as-pect\assembly\assembly\index.ts --runtime stub --debug --binaryFile output.wasm --explicitStart --use ASC_RTRACE=1 --exportTable --importMemory --transform D:\code\serde-as\node_modules\@as-pect\core\lib\transform\index.js

[wasm-validator error in function start:assembly/__tests__/compactInt.spec~anonymous|0~anonymous|0] i64 != i32: binary child types must be equal, on
(i32.and
 (i64.extend_i32_u
  (i32.load16_u
   (local.get $15)
  )
 )
 (i32.const 65535)
)
[wasm-validator error in function start:assembly/__tests__/compactInt.spec~anonymous|0~anonymous|0] i64 != i32: i32 op, on
(i32.and
 (i64.extend_i32_u
  (i32.load16_u
   (local.get $15)
  )
 )
 (i32.const 65535)
)
[Error] There was a compilation error when trying to create the wasm binary for file: assembly/__tests__/compactInt.spec.ts.
Error: validate error
    at Object.main (D:\code\serde-as\node_modules\assemblyscript\cli\asc.js:876:23)
    at D:\code\serde-as\node_modules\@as-pect\cli\src\run.ts:633:11
    at Array.forEach (<anonymous>)
    at run (D:\code\serde-as\node_modules\@as-pect\cli\src\run.ts:630:32)
    at Object.asp (D:\code\serde-as\node_modules\@as-pect\cli\src\index.ts:61:5)
    at Object.<anonymous> (D:\code\serde-as\node_modules\@as-pect\cli\src\test.ts:1:28)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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