Open 0xe opened 1 month ago
@0xe any chance you'll be picking up this one not that the previous part has been merged?
@0xe any chance you'll be picking up this one not that the previous part has been merged?
Yep. I'm planning on starting with destructuring with defaults in for loops.
Looking to add support for destructuring with defaults in for loops, I found some problems in how default values were transformed. I've created a PR to fix those first: https://github.com/mozilla/rhino/pull/1708.
Address items pending from https://github.com/mozilla/rhino/pull/1640
This should throw a TypeError as
[Symbol.iterator]
is not implemented for that object on the rhs, instead uses defaults to return3
.And this should work because we call into iterator to get the default values. Instead we throw a NPE currently.