Closed Bug 709067 Opened 13 years ago Closed 13 years ago

JS Correctness: Another issue with/without TI and defineProperty/prototype

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla10
Tracking Status
firefox9 + ---
firefox10 + fixed
firefox11 + verified

People

(Reporter: decoder, Assigned: bhackett1024)

Details

(Keywords: testcase, Whiteboard: [qa!] js-triage-needed)

Attachments

(1 file)

The following test produces different output with options "-m -a" vs. "-m -a -n" on mozilla-central revision 63bff373cb94: Object.defineProperty(Object.prototype, 0, {set: function() { this.abstract; }}); function testStringify() { var t = true; var a = []; a[0] = "" + t; return a.join(","); } print(testStringify()); Output: $ $JS -m -a min.js $ $JS -m -a -n min.js true The test looks like bug 706808 but that is fixed already.
Attached patch patchSplinter Review
Similar issue to bug 706808, but affecting indexed array properties --- setters were only getting called when directly on Array.prototype, and non-writable prototype properties were getting ignored entirely.
Assignee: general → bhackett1024
Attachment #580459 - Flags: review?(luke)
Attachment #580459 - Flags: review?(luke) → review+
Brian, do you think we should nominate this for 10?
Attachment #580459 - Flags: approval-mozilla-aurora?
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
(In reply to Brian Hackett (:bhackett) from comment #4) > Comment on attachment 580459 [details] [diff] [review] > patch > > Sure. [Triage Comment] Can you help us understand the risk involved with this patch? Thanks!
The problem here is similar to bug 706808, with a similar (small) risk.
Comment on attachment 580459 [details] [diff] [review] patch Approved for mozilla-aurora. Please land today.
Attachment #580459 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Target Milestone: mozilla11 → mozilla10
Whiteboard: js-triage-needed → [qa+] js-triage-needed
Ubuntu 11.04 64 bit I built Spidermonkey for the latest beta (rev d46a4577a631) and run the test from comment #0: same output is produced in both cases (-m -a -n and -m -a): ./js -m -a -n test709067 ./js -m -a test709067 Marking verified for Firefox 11.
Status: RESOLVED → VERIFIED
Whiteboard: [qa+] js-triage-needed → [qa!] js-triage-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: