[Webkit-unassigned] [Bug 25544] New: toString (function source) for event listeners in V8 bindings shows wrapper code
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 4 04:40:16 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=25544
Summary: toString (function source) for event listeners in V8
bindings shows wrapper code
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptGlue
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: sgjesse at chromium.org
CC: dglazkov at chromium.org
For a event listener like onsubmit="return validate(this)" the
onsubmit.toString will return this:
function onsubmit(evt) {
with (this.ownerDocument ? this.ownerDocument : {}) {
with (this.form ? this.form : {}) {
with (this) {
return (function(evt){return validate(this)}).call(this, evt);
}
}
}
}
whereas something like this should be returned:
function onsubmit(event)
{
return validate(this);
}
--
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