Closed Bug 1459042 Opened 3 years ago Closed 11 months ago

AsyncGenerator.prototype methods don't support wrapped AsyncGenerator objects

Categories

(Core :: JavaScript Engine, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox61 --- wontfix
firefox72 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

(Keywords: correctness)

Attachments

(1 file, 1 obsolete file)

Test case:
---
var g = newGlobal();

var next = async function*(){}.prototype.next;
var it = g.eval("(async function*(){ return 'OK'; })()");

next.call(it).then(v => print(v.value), print);
---

Expected: Prints "OK"
Actual: Prints TypeError
Keywords: correctness
Priority: -- → P2

Changes the code to use assertions to match the current specification.

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Attachment #9107523 - Attachment description: Bug 1459042 - Part 2: Handle cross-compartment wrappers for async iterator objects. r=jorendorff! → Bug 1459042: Handle cross-compartment wrappers for async iterator objects. r=jorendorff!
Attachment #9107522 - Attachment is obsolete: true
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6ddf558231eb
Handle cross-compartment wrappers for async iterator objects. r=jorendorff
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.