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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Brian Burg
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.