Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 28, 2023
1 parent 2caed0d commit 4f66f82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/swc_ecma_parser/tests/test262.rs
Expand Up @@ -305,6 +305,8 @@ fn identity_tests(tests: &mut Vec<TestDescAndFn>) -> Result<(), io::Error> {
let expected = p(true);
assert_eq!(src, expected);
}

Ok(())
});
}

Expand Down
4 changes: 3 additions & 1 deletion crates/swc_ecma_transforms_base/tests/fixer_test262.rs
Expand Up @@ -92,7 +92,7 @@ const IGNORED_PASS_TESTS: &[&str] = &[
"c06df922631aeabc.js",
];

fn add_test<F: FnOnce() + Send + 'static>(
fn add_test<F: FnOnce() -> Result<(), String> + Send + 'static>(
tests: &mut Vec<TestDescAndFn>,
name: String,
ignore: bool,
Expand Down Expand Up @@ -258,6 +258,8 @@ fn identity_tests(tests: &mut Vec<TestDescAndFn>) -> Result<(), io::Error> {
Err(())
})
.expect("failed to run test");

Ok(())
}
});
}
Expand Down

0 comments on commit 4f66f82

Please sign in to comment.