benchmark: fix sqlite-is-transaction · nodejs/node@ad6757e · GitHub
Skip to content

Commit ad6757e

Browse files
RafaelGSSaduh95
authored andcommitted
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 ``` PR-URL: #59170 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
1 parent 3da5bc0 commit ad6757e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

benchmark/sqlite/sqlite-is-transaction.js

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)