mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibJS: Fix variable scoping issues in two tests
This commit is contained in:
parent
38fd980b0c
commit
793e1bf28a
Notes:
sideshowbarker
2024-07-18 10:20:10 +09:00
Author: https://github.com/Hendi48
Commit: 793e1bf28a
Pull-request: https://github.com/SerenityOS/serenity/pull/8439
Issue: https://github.com/SerenityOS/serenity/issues/8299
Reviewed-by: https://github.com/linusg ✅
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ describe("normal behavior", () => {
|
|||
var array = [1, 2, 3, 4, 5];
|
||||
|
||||
expect(
|
||||
arrayTwo.every((value, index, arr) => {
|
||||
array.every((value, index, arr) => {
|
||||
arr.push(6);
|
||||
return value <= 5;
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue