Ingvar Stepanyan 2f524ee494 Leverage new is_type_of for iterator protocol
Treats any object of shape `{ next: function }` as an iterator via new `is_type_of` method. This is consistent with JavaScript iteration protocol which we already respect.

Also fixes a minor issue that `is_function` was unnecessarily called twice (once explicitly and once as part of `dyn_into` which now does the same check).
2019-04-12 20:30:41 +01:00
..
2019-04-11 07:39:45 -07:00
2019-04-12 10:54:36 -07:00
2019-04-11 07:39:45 -07:00
2019-04-11 07:39:45 -07:00
2019-04-11 07:39:45 -07:00
2019-04-11 07:39:45 -07:00
2019-04-12 17:23:42 +01:00
2019-04-11 07:39:45 -07:00
2019-04-11 07:39:45 -07:00
2019-04-11 07:39:45 -07:00
2019-04-11 07:39:45 -07:00
2018-11-27 12:07:59 -08:00
2019-04-01 19:45:53 -03:00
2019-04-11 07:39:45 -07:00
2019-04-11 07:39:45 -07:00
2019-04-12 17:23:42 +01:00