Opal-Estate-Pro/node_modules/es5-ext/test/string/#/@@iterator/shim.js
2019-09-13 11:27:52 +07:00

10 lines
310 B
JavaScript

"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");
};