Skip to content

Commit

Permalink
Remove duplicate iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
nekevss committed Dec 27, 2024
1 parent 94f15a5 commit 8461835
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/tester/src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,26 +97,6 @@ pub(super) fn read_harness(test262_path: &Path) -> Result<Harness> {

read_harness_dir(&test262_path.join("harness"), &mut includes)?;

for entry in fs::read_dir(test262_path.join("harness"))
.wrap_err("error reading the harness directory")?
{
let entry = entry?;
let file_name = entry.file_name();
let file_name = file_name.to_string_lossy();

if file_name == "assert.js"
|| file_name == "sta.js"
|| file_name == "doneprintHandle.js"
|| file_name == "sm"
{
continue;
}

includes.insert(
file_name.into_owned().into_boxed_str(),
read_harness_file(entry.path())?,
);
}
let assert = read_harness_file(test262_path.join("harness/assert.js"))?;
let sta = read_harness_file(test262_path.join("harness/sta.js"))?;
let doneprint_handle = read_harness_file(test262_path.join("harness/doneprintHandle.js"))?;
Expand Down

0 comments on commit 8461835

Please sign in to comment.