-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
[web] Unexpected token error in profile mode #186
Comments
Thanks for the report. I have to admit that I never tried profile mode before. I was able to reproduce the issue using the notepad_sembast application on the beta and dev channel. |
I don't do it often myself but apart from being able to profile drawing performance issues, there's one huge advantage to profile mode, and this is why I sometimes use it: it compiles to release code but it doesn't minify. And this means that error messages quoting types and variables will make sense. This is actually why I realized it now: I had an exception somewhere (not Sembast-related) and I wanted to be able to understand where it comes from. Then I'll look into it, too. |
It really looks like the compiler wants to use |
Yeap that's weird, I don't speak javascript ;) as fluently as you do. It sounds like we should report this issue to flutter/dart2js. If you do it, great, otherwise I will do it but likely not before next week. |
I speak it but I don't like it. :-)) Ok, I'll do it, I'll refer to this issue here. |
@deakjahn Thanks for reporting it! |
When trying to compile and run my app using sembast in profile mode for the web, I get a strange error message in the browser console:
The actual compiled code is:
The error references the marked line.
It's obviously not your fault :-), just that did you ever experience anything similar? I don't yet know if a minimal, simple app would exhibit the same error.
The text was updated successfully, but these errors were encountered: