Closed Bug 598164 Opened 11 years ago Closed 11 years ago

Object.defineProperty can default configurable and writable to true

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID
mozilla2.0b7
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: brendan, Unassigned)

References

Details

See bug 597945 comment 4, which diagnoses the problem. Testcase from jorendorff's bug 597945 comment 2:

  var a = {d:true};
  Object.defineProperty(a, "d", {set: undefined});
  delete a.d;
  assertEq(a.hasOwnProperty("d"), true);

/be
blocking2.0: --- → ?
blocking2.0: ? → betaN+
Oops, this is INVALID -- Jason just realized it reading bug 597945 comment 4. The configurable bit remains from the original property. Sorry for the false alarm.

/be
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.