Bug 25008

Summary: syntax error in JavaScript passed to eval didn't show the line of the eval call
Product: WebKit Reporter: Greg Hulands <ghulands>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: oliver
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Greg Hulands
Reported 2009-04-02 11:08:04 PDT
In an ajax based WebObjects app using the wonder ajax framework, I had an update div that had the id of "ws-toolbar". The framework uses eval() to do some magic but the div id contains a dash in the name such that when it eval'ed it, it turned it into a minus. register: function(id, options) { if (!options) { options = {}; } eval(id + "Update = function() { AjaxUpdateContainer.update(id, options) }"); } div id="ws-toolbar" generated script was ws-toolbarUpdate = function() { AjaxUpdateContainer.update(id, options) } The web inspector just showed "SyntaxError: Parse error" where as Firebug showed the offending eval() line above which let me deduce it was the div id that was the cause of the problems.
Attachments
Brian Burg
Comment 1 2014-12-12 14:08:10 PST
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests. Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.
Note You need to log in before you can comment on or make changes to this bug.