[Webkit-unassigned] [Bug 45480] New: missing (new Function).caller for __defineGetter__, __defineSetter__, and Object.defineProperty({get: ... set: ...})
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 9 11:28:32 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=45480
Summary: missing (new Function).caller for __defineGetter__,
__defineSetter__, and Object.defineProperty({get: ...
set: ...})
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
URL: http://www.3site.eu/bugs/getter_setter_caller.html
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: andrea.giammarchi at gmail.com
There is no caller for *non* "use strict" cases when a getter/setter is invoked inside another function.
All other browsers work as expected and since the behavior of caller is undefined but you implemented in any case, I do believe WebKit/Safari should be more consistent bringing the caller in example cases as well.
See the URL for more tests or try this code:
var o = {
exec: function exec() {
var wtf = this.test;
}
};
o.__defineGetter__("test", function test() {
alert(test.caller);
return "test";
});
o.exec();
Best Regards,
Andrea Giammarchi
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list