mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
Use distinct variable name within test case
In order to increase the clarity of generated output, select a name for the test case variable that is not also used by a test template.
This commit is contained in:
parent
95b5b13c16
commit
b7d496942a
@ -26,11 +26,11 @@ info: |
|
|||||||
//- setup
|
//- setup
|
||||||
var iter = {};
|
var iter = {};
|
||||||
iter[Symbol.iterator] = function() {
|
iter[Symbol.iterator] = function() {
|
||||||
var callCount = 0;
|
var nextCount = 0;
|
||||||
return {
|
return {
|
||||||
next: function() {
|
next: function() {
|
||||||
callCount += 1;
|
nextCount += 1;
|
||||||
return { done: callCount === 3, value: callCount };
|
return { done: nextCount === 3, value: nextCount };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user