Closed Bug 1380953 Opened 8 years ago Closed 5 years ago

Ion retrieves "prototype" property too often from NewTarget

Categories

(Core :: JavaScript Engine: JIT, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1607670

People

(Reporter: anba, Unassigned)

Details

Test case: --- var q = 0; function fn() {} var newTarget = Object.defineProperty(fn.bind(), "prototype", { get() { ++q; return null; } }); for (var i = 0; i < 10; ++i) { Reflect.construct(fn, [], newTarget); } print(q); --- Actual: - When called with "--no-ion", prints "10" - When called with "--ion-eager --no-threads", prints "16" Expected: - Always prints "10".
Priority: -- → P3

Fixed in bug 1607670.

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