[Webkit-unassigned] [Bug 25008] New: Better error reporting in inspector for eval() scripts in ajax based apps

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 2 11:08:04 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25008

           Summary: Better error reporting in inspector for eval() scripts
                    in ajax based apps
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ghulands at mac.com


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.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list