[Webkit-unassigned] [Bug 21362] New: "this" object in methods called on primitives should be wrapper object
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 3 23:58:09 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=21362
Summary: "this" object in methods called on primitives should be
wrapper object
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mjs at apple.com
In cases like this:
String.prototype.thisType = function() { return typeof this; };
Number.prototype.thisType = function() { return typeof this; };
Boolean.prototype.thisType = function() { return typeof this; };
shouldBe("(1).thisType()", "'object'");
shouldBe("(2.3).thisType()", "'object'");
shouldBe("'xxx'.thisType()", "'object'");
shouldBe("(false).thisType()", "'object'");
We're currently providing the raw number or string or bool as the "this" value,
which is subtly wrong.
--
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