Skip to content

Invalid JS generated for valid Go program. #656

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

Open
dmitshur opened this issue Jul 4, 2017 · 0 comments
Open

Invalid JS generated for valid Go program. #656

dmitshur opened this issue Jul 4, 2017 · 0 comments

Comments

@dmitshur
Copy link
Member

dmitshur commented Jul 4, 2017

https://gopherjs.github.io/playground/#/J4t4vqRaj2

The program is valid Go and prints "2009/11/10 23:00:00 rotation: 0" output in normal Go Playground. But in GopherJS Playground, it generates invalid JavaScript:

panic: Cannot read property 'apply' of undefined

Originally reported by @j7b in #640 (comment). Factoring it out into a separate issue since it's very reproducible and actionable.

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

No branches or pull requests

1 participant