Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
benchmark: fix sqlite-is-transaction
The variable deadCodeElimination is declared
but not initialized, making it undefined by default.
When using the &&= operator with an undefined left operand,
the result will always remain undefined regardless of
how many iterations run.

```js
let deadCodeElimination;
deadCodeElimination &&= true
deadCodeElimination // undefined
```
  • Loading branch information
RafaelGSS committed Jul 22, 2025
commit afdb248bd2e5ecba02101888cfd2660843ed0878
2 changes: 1 addition & 1 deletion benchmark/sqlite/sqlite-is-transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function main(conf) {
}

let i;
let deadCodeElimination;
let deadCodeElimination = true;

bench.start();
for (i = 0; i < conf.n; i += 1)
Expand Down
Loading