Coerce the argument passed to Object.getPrototypeOf using ToObject

RESOLVED FIXED in mozilla35

Status

()

RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: 446240525, Assigned: 446240525)

Tracking

({dev-doc-complete})

Trunk
mozilla35
dev-doc-complete
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [DocArea=JS])

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
js> Object.getPrototypeOf("foo")
TypeError: "foo" is not an object
// should return `String.prototype` in ES6
(Assignee)

Comment 1

4 years ago
Created attachment 8500874 [details] [diff] [review]
bug-1079090.patch
Attachment #8500874 - Flags: review?(till)
Comment on attachment 8500874 [details] [diff] [review]
bug-1079090.patch

Review of attachment 8500874 [details] [diff] [review]:
-----------------------------------------------------------------

Nice!
Attachment #8500874 - Flags: review?(till) → review+
(Assignee)

Comment 3

4 years ago
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=7d9c0bd6ea19
Keywords: dev-doc-needed → checkin-needed, dev-doc-complete
https://hg.mozilla.org/mozilla-central/rev/55b7368ee7f8
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in before you can comment on or make changes to this bug.