You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generators compiled with --target es5 --lib esnext do not support iterator helpersΒ #59513
// @target: es5// @lib: esnextconstar=[1,2,3,4];ar.values().map(i=>i*2);// [2, 4, 6, 8]function*f(){yield*[1,2,3,4];}f().map(i=>i*2);// error: 'f(...).map' is not a function
π Actual behavior
The last line above throws even when Iterator.prototype is present, be it from the host or a polyfill.
π Expected behavior
The last line above should not throw when the global Iterator.prototype is present and can be used as a prototype.
Activity