Generate tests

This commit is contained in:
Leo Balter 2017-05-10 13:48:36 -04:00
parent f4f23cb06b
commit 5f04d2b1f3
No known key found for this signature in database
GPG Key ID: 2C75F319D398E36B
62 changed files with 124 additions and 186 deletions

View File

@ -50,6 +50,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var f;
@ -60,9 +61,7 @@ f = ([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) => {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};

View File

@ -50,6 +50,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var f;
@ -60,9 +61,7 @@ f = ([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) => {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};

View File

@ -29,6 +29,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -40,9 +41,7 @@ f = async function*([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};

View File

@ -29,6 +29,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -40,9 +41,7 @@ f = async function*([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};

View File

@ -29,6 +29,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -40,9 +41,7 @@ f = async function* h([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};

View File

@ -29,6 +29,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -40,9 +41,7 @@ f = async function* h([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};

View File

@ -53,6 +53,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -64,9 +65,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -53,6 +53,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -64,9 +65,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -53,6 +53,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -64,9 +65,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -53,6 +53,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -64,9 +65,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -74,6 +74,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var C = class {
@ -84,9 +85,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -74,6 +74,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var C = class {
@ -84,9 +85,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -74,6 +74,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var C = class {
@ -84,9 +85,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -74,6 +74,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var C = class {
@ -84,9 +85,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -71,6 +71,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var C = class {
@ -81,9 +82,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -71,6 +71,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var C = class {
@ -81,9 +82,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -71,6 +71,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var C = class {
@ -81,9 +82,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -71,6 +71,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var C = class {
@ -81,9 +82,7 @@ var C = class {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -51,6 +51,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var f;
@ -61,9 +62,7 @@ f = function([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};

View File

@ -51,6 +51,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var f;
@ -61,9 +62,7 @@ f = function([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};

View File

@ -51,6 +51,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var f;
@ -61,9 +62,7 @@ f = function*([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};

View File

@ -51,6 +51,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var f;
@ -61,9 +62,7 @@ f = function*([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};

View File

@ -34,6 +34,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -45,9 +46,7 @@ var obj = {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -34,6 +34,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -45,9 +46,7 @@ var obj = {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -56,6 +56,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var obj = {
@ -66,9 +67,7 @@ var obj = {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -56,6 +56,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var obj = {
@ -66,9 +67,7 @@ var obj = {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -53,6 +53,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var obj = {
@ -63,9 +64,7 @@ var obj = {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -53,6 +53,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
var obj = {
@ -63,9 +64,7 @@ var obj = {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -29,6 +29,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -39,9 +40,7 @@ async function* f([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};
f([7, 8, 9]).next().then(() => {

View File

@ -29,6 +29,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -39,9 +40,7 @@ async function* f([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};
f().next().then(() => {

View File

@ -52,6 +52,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -63,9 +64,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -52,6 +52,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -63,9 +64,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -52,6 +52,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -63,9 +64,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -52,6 +52,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
@ -63,9 +64,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -72,6 +72,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
class C {
@ -82,9 +83,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -72,6 +72,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
class C {
@ -82,9 +83,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -72,6 +72,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
class C {
@ -82,9 +83,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -72,6 +72,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
class C {
@ -82,9 +83,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -70,6 +70,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
class C {
@ -80,9 +81,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -70,6 +70,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
class C {
@ -80,9 +81,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -70,6 +70,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
class C {
@ -80,9 +81,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -70,6 +70,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
class C {
@ -80,9 +81,7 @@ class C {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
}
};

View File

@ -30,6 +30,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
const [...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9];
@ -39,6 +40,4 @@ assert.sameValue(x, 9);
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");

View File

@ -48,6 +48,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -59,9 +60,7 @@ async function fn() {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -48,6 +48,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -59,9 +60,7 @@ async function fn() {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -45,6 +45,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -56,9 +57,7 @@ async function fn() {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -48,6 +48,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -59,9 +60,7 @@ async function *fn() {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -48,6 +48,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -59,9 +60,7 @@ async function *fn() {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -45,6 +45,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -56,9 +57,7 @@ async function *fn() {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -49,6 +49,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -59,9 +60,7 @@ for (const [...{ 0: v, 1: w, 2: x, 3: y, length: z }] of [[7, 8, 9]]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -49,6 +49,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -59,9 +60,7 @@ for (let [...{ 0: v, 1: w, 2: x, 3: y, length: z }] of [[7, 8, 9]]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -46,6 +46,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -56,9 +57,7 @@ for (var [...{ 0: v, 1: w, 2: x, 3: y, length: z }] of [[7, 8, 9]]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -49,6 +49,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -59,9 +60,7 @@ for (const [...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]; iterCount < 1
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -49,6 +49,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -59,9 +60,7 @@ for (let [...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]; iterCount < 1;
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -43,6 +43,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var iterCount = 0;
@ -53,9 +54,7 @@ for (var [...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]; iterCount < 1;
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
iterCount += 1;
}

View File

@ -52,6 +52,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
function f([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
@ -61,9 +62,7 @@ function f([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};
f([7, 8, 9]);

View File

@ -52,6 +52,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
function f([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
@ -61,9 +62,7 @@ function f([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};
f();

View File

@ -51,6 +51,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
function* f([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
@ -60,9 +61,7 @@ function* f([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};
f([7, 8, 9]).next();

View File

@ -51,6 +51,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var callCount = 0;
function* f([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
@ -60,9 +61,7 @@ function* f([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
callCount = callCount + 1;
};
f().next();

View File

@ -30,6 +30,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
let [...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9];
@ -39,6 +40,4 @@ assert.sameValue(x, 9);
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");

View File

@ -28,6 +28,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var ranCatch = false;
@ -40,9 +41,7 @@ try {
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
ranCatch = true;
}

View File

@ -29,6 +29,7 @@ info: |
BindingPattern with A and environment as the arguments.
[...]
---*/
let length = "outer";
var [...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9];
@ -38,6 +39,4 @@ assert.sameValue(x, 9);
assert.sameValue(y, undefined);
assert.sameValue(z, 3);
assert.throws(ReferenceError, function() {
length;
});
assert.sameValue(length, "outer", "the length prop is not set as a binding name");