I am currently building an online programming site; you write games and run them there and then. When your code is run it's compiled to JavaScript, placed into a new script tag and then appended to the documents head.
Over the last 2 months strange errors in previously working code have been cropping up. First the 'Image' function was found to be undefined. More recently jQuery failed to run because 'childNodes' and 'nodeType' were now undefined. The undefined errors only happen in the injected scripts; the normal scripts run at page load are not affected. Further if I do touch these features in the normal scripts (like 'var img = Image;'), then the injected scripts now work fine. It's only if a feature is never touched before an injected script is run that they are affected. Only Chrome is affected by this issue; FireFox 4 and IE 9 are both working fine. Chrome also used to work fine; the Image bug appeared essentially overnight around Chrome 10 and the jQuery bug was found today (although could have been a little older). I'm also unable to build a simple example of this bug; my simple tests all work as expected. To clarify, my workaround isn't storing or passing values on to the injected scripts. I just access them and do nothing with the result. This suggests to me that this is a Chrome or V8 bug. Any help on this would be much appreciated. -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
