Closed Bug 621376 Opened 14 years ago Closed 14 years ago

TM: Different output with Function, prototype, encodeURI

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b9
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: gkw, Assigned: Waldo)

References

Details

(Keywords: regression, testcase, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

for (b in [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) { new Function.prototype print(encodeURI.prototype) } without -j: undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined with -j: undefined undefined undefined undefined undefined undefined undefined undefined undefined [object Object]
blocking2.0: --- → ?
Changeset 54759 - 2c5f8185dd2f: (without -j) [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] Changeset 54759 - 2c5f8185dd2f: (with -j) [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] [object Object] ===== Changeset 54760 - caa8bfd6f9b1: (without -j) undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined Changeset 54760 - caa8bfd6f9b1: (with -j) undefined undefined undefined undefined undefined undefined undefined undefined undefined [object Object] autoBisect shows this is probably related to the following changeset: The first bad revision is: changeset: 54760:caa8bfd6f9b1 user: Brendan Eich date: Sun Oct 03 22:46:39 2010 -0700 summary: Per ECMA-262, no .prototype for built-in functions and Function.prototype (445319, r=Waldo).
Blocks: 445319
Keywords: regression
Attached patch Patch and testsSplinter Review
I reviewed the patch that didn't do this, so consider this penance. :-)
Assignee: general → jwalden+bmo
Status: NEW → ASSIGNED
Attachment #499731 - Flags: review?(brendan)
blocking2.0: ? → betaN+
Comment on attachment 499731 [details] [diff] [review] Patch and tests Thanks! /be
Attachment #499731 - Flags: review?(brendan) → review+
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: fixed-in-tracemonkey
Target Milestone: --- → mozilla2.0b9
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: