Skip to content

crash when compile PropertyAccessExpression #2747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HerrCai0907 opened this issue Sep 27, 2023 · 1 comment · Fixed by #2738
Closed

crash when compile PropertyAccessExpression #2747

HerrCai0907 opened this issue Sep 27, 2023 · 1 comment · Fixed by #2738
Assignees
Labels

Comments

@HerrCai0907
Copy link
Member

Bug description

Whoops, the AssemblyScript compiler has crashed during compile :-(

▌ Here is the stack trace hinting at the problem, perhaps it's useful?

▌ /Users/q540239/oss/assemblyscript/std/portable/index.js:216
▌ throw new AssertionError(message);
▌ ^

▌ AssertionError: assertion failed
▌ at Y.assert (/Users/q540239/oss/assemblyscript/std/portable/index.js:216:11)
▌ at Kn.resolveFunction (/Users/q540239/oss/assemblyscript/src/resolver.ts:2826:7)
▌ at jr.compilePropertyAccessExpression (/Users/q540239/oss/assemblyscript/src/compiler.ts:9039:46)
▌ at jr.compileExpression (/Users/q540239/oss/assemblyscript/src/compiler.ts:3401:21)
▌ at jr.compileExpressionStatement (/Users/q540239/oss/assemblyscript/src/compiler.ts:2482:17)
▌ at jr.compileStatement (/Users/q540239/oss/assemblyscript/src/compiler.ts:2196:21)
▌ at jr.compileTopLevelStatement (/Users/q540239/oss/assemblyscript/src/compiler.ts:2160:25)
▌ at jr.compileFile (/Users/q540239/oss/assemblyscript/src/compiler.ts:1099:12)
▌ at jr.compile (/Users/q540239/oss/assemblyscript/src/compiler.ts:548:14)
▌ at Module.G0 (/Users/q540239/oss/assemblyscript/src/index-wasm.ts:358:32)

▌ If you see where the error is, feel free to send us a pull request. If not,
▌ please let us know: https://github.com/AssemblyScript/assemblyscript/issues

▌ Thank you!

Steps to reproduce

namespace A {
  export function bar<T>(): void {}
}

A.bar;

AssemblyScript version

v0.27.9

@HerrCai0907 HerrCai0907 self-assigned this Sep 27, 2023
@CountBleck
Copy link
Member

See #2738.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants