Bug with Prototype 1.7 and Native Array Usage

23 views
Skip to first unread message

epoch

unread,
Sep 25, 2012, 5:40:17 AM9/25/12
to prototype-s...@googlegroups.com
Using chrome 21 and prototype 1.7.1, I have discovered that using $throw $break does not work.

The Error/Exception gets thrown up to the browser when it should have been stopped by if (e != $break)
I suspect that this occurs because inject, each, etc have native implementations in Chrome, and they do not get wrapped by the same functionality as the built in functions

Please tell me that I am wrong, or I will have to change thousands of lines of code to normal for-loops to break out of them.

epoch

unread,
Sep 25, 2012, 5:44:55 AM9/25/12
to prototype-s...@googlegroups.com
Fiddle to re-create this issue :  http://jsfiddle.net/epoch/Dxefg/ 
Message has been deleted

epoch

unread,
Sep 25, 2012, 9:23:19 AM9/25/12
to prototype-s...@googlegroups.com
sorry for cross-posting but here is the answer that helped me :  http://stackoverflow.com/questions/12580410/bug-with-prototype-1-7-1-and-native-array-usage 


On Tuesday, September 25, 2012 11:40:17 AM UTC+2, epoch wrote:
Reply all
Reply to author
Forward
0 new messages