mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 14:35:30 +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
|
||||
var iter = {};
|
||||
iter[Symbol.iterator] = function() {
|
||||
var callCount = 0;
|
||||
var nextCount = 0;
|
||||
return {
|
||||
next: function() {
|
||||
callCount += 1;
|
||||
return { done: callCount === 3, value: callCount };
|
||||
nextCount += 1;
|
||||
return { done: nextCount === 3, value: nextCount };
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user