WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
25008
syntax error in JavaScript passed to eval didn't show the line of the eval call
https://bugs.webkit.org/show_bug.cgi?id=25008
Summary
syntax error in JavaScript passed to eval didn't show the line of the eval call
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug