Opal-Estate-Pro/node_modules/es5-ext/test/string/#/@@iterator/shim.js

10 lines
310 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
"use strict";
module.exports = function (t, a) {
var it = t.call("r💩z");
a.deep(it.next(), { done: false, value: "r" }, "#1");
a.deep(it.next(), { done: false, value: "💩" }, "#2");
a.deep(it.next(), { done: false, value: "z" }, "#3");
a.deep(it.next(), { done: true, value: undefined }, "End");
};