| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| components | ||
| spec | ||
| spec_helpers | ||
| utils | ||
| common_libraries.js |
Both of them dynamically generate specs which close over the iteration variable of a for loop. Closures capture *references*, not values, and so when the variable is mutated on loop iteration its new value is used when the spec is called. This means that instead of running a spec with n different values, we run the spec n times with the same value. This is bad.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| components | Loading commit data... | |
| spec | Loading commit data... | |
| spec_helpers | Loading commit data... | |
| utils | Loading commit data... | |
| common_libraries.js | Loading commit data... |