[Webkit-unassigned] [Bug 55537] New: Strict functions claim to have 'callee' which they actually don't (and shouldn't)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 1 17:42:10 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=55537
Summary: Strict functions claim to have 'callee' which they
actually don't (and shouldn't)
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: erights at gmail.com
> function foo(){"use strict"}
> Object.getOwnPropertyNames(foo)
["arguments", "callee", "caller", "length", "name", "prototype"]
> Object.getOwnPropertyDescriptor(foo, 'callee')
undefined
> 'callee' in foo
false
> foo.hasOwnProperty('callee')
false
I suspect this may be due to a partial misreading of the ES5/strict poisoning rules, where we poison "callee" and "caller" on arguments, but poison "arguments" and "caller" on strict functions.
--
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