jsdom / webidl2js

Auto-generate JS class structures for Web IDL specifications
MIT License
79 stars 30 forks source link

fixup! Create sync iterators in the correct realm #243

Closed ExE-Boss closed 3 years ago

ExE-Boss commented 3 years ago

I realised while working on https://github.com/jsdom/webidl2js/pull/242 that in https://github.com/jsdom/webidl2js/pull/234, the AsyncIterator subclass is created wrongly, because the object that should be passed to Object.assign is instead accidentally passed as an excess parameter to Object.create.


This also makes it use utils.define now that it exists as of https://github.com/jsdom/webidl2js/pull/226.