Note: There are a few cases of duplicates in user autocompletion which are being worked on.

IonMonkey: Object.watch on own properties of global objects with setters ignored.

RESOLVED FIXED

Status

()

Core
JavaScript Engine
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: efaust, Assigned: efaust)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [ion:t])

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
The following test case asserts when run with --no-jm:

var flag = 0;
var a = {}; 
Object.defineProperty(a, "value", {set: function(x) {}});
a.watch("value", function(){flag++;});

for(var i = 0; i < 100; i++) {
    a.value = i;
    assertEq(flag, i+1);
}
(Assignee)

Comment 1

5 years ago
Created attachment 648076 [details] [diff] [review]
Fix
Attachment #648076 - Flags: review?(dvander)
Attachment #648076 - Flags: review?(dvander) → review+
Whiteboard: [ion:t]
(Assignee)

Comment 2

5 years ago
https://hg.mozilla.org/projects/ionmonkey/rev/6554cd8235ff
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.