);
});
+ it("[[Construct]] throws an error", () => {
+ assertThrows(() => new arrayIteratorFunction());
+ });
+
+ describe(".length", () => {
+ it("[[Get]] returns the correct length", () => {
+ assertStrictEquals(arrayIteratorFunction.length, 1);
+ });
+ });
+
+ describe(".name", () => {
+ it("[[Get]] returns the correct name", () => {
+ assertStrictEquals(
+ arrayIteratorFunction.name,
+ "arrayIteratorFunction",
+ );
+ });
+ });
+
describe("()", () => {
it("[[Call]] returns a value which inherits from %IteratorPrototype%", () => {
const iteratorProto = Object.getPrototypeOf(
);
});
+ it("[[Construct]] throws an error", () => {
+ assertThrows(() => new generatorIteratorFunction());
+ });
+
+ describe(".length", () => {
+ it("[[Get]] returns the correct length", () => {
+ assertStrictEquals(generatorIteratorFunction.length, 1);
+ });
+ });
+
+ describe(".name", () => {
+ it("[[Get]] returns the correct name", () => {
+ assertStrictEquals(
+ generatorIteratorFunction.name,
+ "generatorIteratorFunction",
+ );
+ });
+ });
+
describe("()", () => {
it("[[Call]] returns a value which inherits from %IteratorPrototype%", () => {
const iteratorProto = Object.getPrototypeOf(
);
});
+ it("[[Construct]] throws an error", () => {
+ assertThrows(() => new mapIteratorFunction());
+ });
+
+ describe(".length", () => {
+ it("[[Get]] returns the correct length", () => {
+ assertStrictEquals(mapIteratorFunction.length, 1);
+ });
+ });
+
+ describe(".name", () => {
+ it("[[Get]] returns the correct name", () => {
+ assertStrictEquals(
+ mapIteratorFunction.name,
+ "mapIteratorFunction",
+ );
+ });
+ });
+
describe("()", () => {
it("[[Call]] returns a value which inherits from %IteratorPrototype%", () => {
const iteratorProto = Object.getPrototypeOf(
);
});
+ it("[[Construct]] throws an error", () => {
+ assertThrows(() => new setIteratorFunction());
+ });
+
+ describe(".length", () => {
+ it("[[Get]] returns the correct length", () => {
+ assertStrictEquals(setIteratorFunction.length, 1);
+ });
+ });
+
+ describe(".name", () => {
+ it("[[Get]] returns the correct name", () => {
+ assertStrictEquals(
+ setIteratorFunction.name,
+ "setIteratorFunction",
+ );
+ });
+ });
+
describe("()", () => {
it("[[Call]] returns a value which inherits from %IteratorPrototype%", () => {
const iteratorProto = Object.getPrototypeOf(
);
});
+ it("[[Construct]] throws an error", () => {
+ assertThrows(() => new stringIteratorFunction());
+ });
+
+ describe(".length", () => {
+ it("[[Get]] returns the correct length", () => {
+ assertStrictEquals(stringIteratorFunction.length, 1);
+ });
+ });
+
+ describe(".name", () => {
+ it("[[Get]] returns the correct name", () => {
+ assertStrictEquals(
+ stringIteratorFunction.name,
+ "stringIteratorFunction",
+ );
+ });
+ });
+
describe("()", () => {
it("[[Call]] returns a value which inherits from %IteratorPrototype%", () => {
const iteratorProto = Object.getPrototypeOf(