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
Observatory when compiled to JavaScript gets DecodeException on well formed JSON #18385
Comments
Marked this as blocking #18358. |
Attached is json-parse.js which is a single call to JSON.parse with the JSON string that failed to decode in dart2js. Note that d8 has no problem parsing it. Attachment: |
Reproduction steps: Using a bleeding_edge build:
|
Couple of other notes:
|
Attached is a trivial reproduction program written in Dart that when compiled to JavaScript fails to execute. The call stack from dart2js compiled program: $ dart2js -o test.js json-parse.dart /usr/local/google/home/johnmccutchan/test.js:1205: TypeError: number is not a function Attachment: |
This looks like a V8 bug. $ third_party/d8/linux/d8 out.js $ third_party/firefox_jsshell/linux/js out.js V8 version 3.25.28.11 |
Attachment: |
Related V8 bug: https://code.google.com/p/v8/issues/detail?id=3282 |
Removed Library-Json label. |
Issue #18436 has been merged into this issue. |
1 similar comment
Issue #18436 has been merged into this issue. |
Issue #18616 has been merged into this issue. |
Issue #18689 has been merged into this issue. |
This comment was originally written by magus...@gmail.com Hi guys, I noticed on Issue #18436 that floitsch commented this is already fixed in bleeding edge (that was around the end of April). Do you know what dev build it is fixed in, or better yet what stable release it should come in? |
Hi, This was actually a bug in V8 and was fixed in Chrome 35. John |
This comment was originally written by magus...@gmail.com Oh really...interesting. Because I think I have a potentially similar error. I guess I'll have to wait till I'm in work again tomorrow to try an replicate it (shouldn't be hard hopefully) but essentially AFAICT it's a similar error with "number is not a function" message... I'd have to check to be absolutely sure, but I don't know of any reason why it wouldn't have been Chrome 35 that I was using. |
This comment was originally written by magusofic...@gmail.com Actually sorry...I didn't realise Chrome 35 only went stable so recently. May I was using Chrome 34 after all...I'm a bit confused now as to when I first encountered this error :/ But at least now it seems like it's not occurring any more. |
Has this issue gone away with Chrome 35? |
I guess we don't expect to take any action on this on the Dart side. Marking as 'not planned'. Added NotPlanned label. |
Observatory when compiled to JavaScript gets DecodeException on well formed JSON.
DecodeException: Error: number is not a function
The text was updated successfully, but these errors were encountered: