mirror of https://github.com/tc39/test262.git
Generate tests
This commit is contained in:
parent
f4f23cb06b
commit
5f04d2b1f3
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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]);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue