mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 15:04:43 +02:00
Generate tests
This commit is contained in:
parent
f4f23cb06b
commit
5f04d2b1f3
@ -50,6 +50,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var f;
|
var f;
|
||||||
@ -60,9 +61,7 @@ f = ([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) => {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -50,6 +50,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var f;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
@ -64,9 +65,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -53,6 +53,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
@ -64,9 +65,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -53,6 +53,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
@ -64,9 +65,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -53,6 +53,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
@ -64,9 +65,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -74,6 +74,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var C = class {
|
var C = class {
|
||||||
@ -84,9 +85,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -74,6 +74,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var C = class {
|
var C = class {
|
||||||
@ -84,9 +85,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -74,6 +74,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var C = class {
|
var C = class {
|
||||||
@ -84,9 +85,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -74,6 +74,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var C = class {
|
var C = class {
|
||||||
@ -84,9 +85,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -71,6 +71,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var C = class {
|
var C = class {
|
||||||
@ -81,9 +82,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -71,6 +71,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var C = class {
|
var C = class {
|
||||||
@ -81,9 +82,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -71,6 +71,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var C = class {
|
var C = class {
|
||||||
@ -81,9 +82,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -71,6 +71,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var C = class {
|
var C = class {
|
||||||
@ -81,9 +82,7 @@ var C = class {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -51,6 +51,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var f;
|
var f;
|
||||||
@ -61,9 +62,7 @@ f = function([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var f;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var f;
|
var f;
|
||||||
@ -61,9 +62,7 @@ f = function*([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var f;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
@ -45,9 +46,7 @@ var obj = {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -34,6 +34,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
@ -45,9 +46,7 @@ var obj = {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -56,6 +56,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -66,9 +67,7 @@ var obj = {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -56,6 +56,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -66,9 +67,7 @@ var obj = {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -53,6 +53,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -63,9 +64,7 @@ var obj = {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -53,6 +53,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -63,9 +64,7 @@ var obj = {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -29,6 +29,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
f([7, 8, 9]).next().then(() => {
|
f([7, 8, 9]).next().then(() => {
|
||||||
|
@ -29,6 +29,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
f().next().then(() => {
|
f().next().then(() => {
|
||||||
|
@ -52,6 +52,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
@ -63,9 +64,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -52,6 +52,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
@ -63,9 +64,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -52,6 +52,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
@ -63,9 +64,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -52,6 +52,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
@ -63,9 +64,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -72,6 +72,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
class C {
|
class C {
|
||||||
@ -82,9 +83,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -72,6 +72,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
class C {
|
class C {
|
||||||
@ -82,9 +83,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -72,6 +72,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
class C {
|
class C {
|
||||||
@ -82,9 +83,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -72,6 +72,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
class C {
|
class C {
|
||||||
@ -82,9 +83,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -70,6 +70,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
class C {
|
class C {
|
||||||
@ -80,9 +81,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -70,6 +70,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
class C {
|
class C {
|
||||||
@ -80,9 +81,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -70,6 +70,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
class C {
|
class C {
|
||||||
@ -80,9 +81,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -70,6 +70,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
class C {
|
class C {
|
||||||
@ -80,9 +81,7 @@ class C {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -30,6 +30,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
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];
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
@ -48,6 +48,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
var iterCount = 0;
|
||||||
|
|
||||||
@ -59,9 +60,7 @@ async function fn() {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
var iterCount = 0;
|
||||||
|
|
||||||
@ -59,9 +60,7 @@ async function fn() {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -45,6 +45,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
var iterCount = 0;
|
||||||
|
|
||||||
@ -56,9 +57,7 @@ async function fn() {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
var iterCount = 0;
|
||||||
|
|
||||||
@ -59,9 +60,7 @@ async function *fn() {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
var iterCount = 0;
|
||||||
|
|
||||||
@ -59,9 +60,7 @@ async function *fn() {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -45,6 +45,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
var iterCount = 0;
|
||||||
|
|
||||||
@ -56,9 +57,7 @@ async function *fn() {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var iterCount = 0;
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
iterCount += 1;
|
iterCount += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
function f([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
f([7, 8, 9]);
|
f([7, 8, 9]);
|
||||||
|
@ -52,6 +52,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
function f([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
f();
|
f();
|
||||||
|
@ -51,6 +51,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
function* f([...{ 0: v, 1: w, 2: x, 3: y, length: z }]) {
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
f([7, 8, 9]).next();
|
f([7, 8, 9]).next();
|
||||||
|
@ -51,6 +51,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
function* f([...{ 0: v, 1: w, 2: x, 3: y, length: z }] = [7, 8, 9]) {
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
callCount = callCount + 1;
|
callCount = callCount + 1;
|
||||||
};
|
};
|
||||||
f().next();
|
f().next();
|
||||||
|
@ -30,6 +30,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
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];
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
@ -28,6 +28,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
BindingPattern with A and environment as the arguments.
|
||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
let length = "outer";
|
||||||
|
|
||||||
var ranCatch = false;
|
var ranCatch = false;
|
||||||
|
|
||||||
@ -40,9 +41,7 @@ try {
|
|||||||
assert.sameValue(y, undefined);
|
assert.sameValue(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
ranCatch = true;
|
ranCatch = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ info: |
|
|||||||
BindingPattern with A and environment as the arguments.
|
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];
|
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(y, undefined);
|
||||||
assert.sameValue(z, 3);
|
assert.sameValue(z, 3);
|
||||||
|
|
||||||
assert.throws(ReferenceError, function() {
|
assert.sameValue(length, "outer", "the length prop is not set as a binding name");
|
||||||
length;
|
|
||||||
});
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user