[Webkit-unassigned] [Bug 93873] New: Object.prototype.__defineGetter__ with non-callable second parameter should throw TypeError instead of SyntaxError
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 13 11:29:17 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=93873
Summary: Object.prototype.__defineGetter__ with non-callable
second parameter should throw TypeError instead of
SyntaxError
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
URL: http://mathias.html5.org/specs/javascript/#object.prot
otype.__definegetter__
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mathias at qiwi.be
CC: ap at webkit.org, abarth at webkit.org, peter at chromium.org
For compatibility with other ECMAScript engines, `Object.prototype.__defineGetter__` must behave as described here: http://mathias.html5.org/specs/javascript/#object.prototype.__definegetter__
JavaScriptCore has a minor bug where it throws a SyntaxError instead of a TypeError in cases like the following:
var object = {};
object.__defineGetter__('foo', '_');
Online tests: http://mathias.html5.org/tests/javascript/object/
--
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