Commit Graph

4 Commits

Author SHA1 Message Date
Shu-yu Guo f1b0a1e270 Fix testing for throw in an iterator via yield* throws
IsHTMLDDA is specified in INTERPRETING.md to return null on [[Call]]
when called with no arguments or with single argument "". Return null
causes the iterator protocol to throw.

Also see star-iterable-return-emulates-undefined-throws-when-called.js
2020-05-06 11:58:52 -04:00
Alexey Shvayka 57fa74b170 Add yield* throw() method test 2020-04-18 17:08:31 -04:00
Jeff Walden c05138b44c Modify $262.uncallableAndIsHTMLDDA() to $262.IsHTMLDDA (#1305)
Modify $262.uncallableAndIsHTMLDDA() to an optional $262.IsHTMLDDA (whose use must be guarded by a feature of the same name), and narrowly/correctly prescribe its requirements consistent with `document.all`'s behavior in HTML.
2017-10-19 15:03:21 -04:00
Jeff Walden 76c1a8fa3a Add tests for the case of <iterator>.return, as used in the iteration protocol, being an object that's uncallable and compares equal to `undefined`. 2017-10-17 12:21:43 -07:00