-
Notifications
You must be signed in to change notification settings - Fork 570
"JavaScript error: ap.$get is not a function" while parsing JSON #662
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
Comments
Thanks for reporting, that looks like a bug in the type system. /cc @neelance |
Both of these lines fail too:
So I guess it is reflection related problem. |
This is as far as I get in terms of a minimal reproducer: If the map does not contain a value for the requested key this does not panic. Which makes me wonder if I missed some way of crashing using reflect only on [2]float64, but I couldn't find one. |
There is the case that a value's |
Perhaps, |
The above guess might be wrong. Please ignore... My understanding is: https://gopherjs.github.io/playground/#/3BcYDllnf7 EDIT: My question: it is assumed that |
It appears that this is no longer reproducible in the current GopherJS 1.16.x versions. Please feel free to reopen if I'm mistaken. |
Uh oh!
There was an error while loading. Please reload this page.
Code: https://gopherjs.github.io/playground/#/cCUnbhmC8q
Browser: Chrome Version 59.0.3071.115 (Official Build) (64-bit) on Linux
Result:
JavaScript error: ap.$get is not a function
Expected Result:
<nil>
Making the array a slice fixes the problem.
The text was updated successfully, but these errors were encountered: