You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught (in promise) TypeError: internref expected at __lowerInternref (release.js?t=1725378963979:80:11) at Object.test (release.js?t=1725378963979:37:14) ....
Generated glue code is not looking as expected:
declarenamespace__AdaptedExports{/** Exported memory */exportconstmemory: WebAssembly.Memory;/** * assembly/index/test * @param test `assembly/Baa` */exportfunctiontest(test: __Internref16): void;}/** assembly/Baa */declareclass__Internref16extendsNumber{private__nominal16: symbol;private__nominal17: symbol;private__nominal0: symbol;}/** Instantiates the compiled WebAssembly module with the given imports. */exportdeclarefunctioninstantiate(module: WebAssembly.Module,imports: {env: unknown,}): Promise<typeof__AdaptedExports>;
Removing inheritance from target class is solving the problem:
export class Baa { a: i32 = 0 b: i32 = 0 }
Is inheritance not supported for host bindings?
AssemblyScript version
0.27.29
The text was updated successfully, but these errors were encountered:
Bug description
I would like to pass data from host to as using host bindings. On the as side the target class is extending another class.
Steps to reproduce
Target class:
index.ts (AS)
Calling from host side:
I get a runtime error like that:
Uncaught (in promise) TypeError: internref expected at __lowerInternref (release.js?t=1725378963979:80:11) at Object.test (release.js?t=1725378963979:37:14) ....
Generated glue code is not looking as expected:
Removing inheritance from target class is solving the problem:
export class Baa { a: i32 = 0 b: i32 = 0 }
Is inheritance not supported for host bindings?
AssemblyScript version
0.27.29
The text was updated successfully, but these errors were encountered: