Skip to content

Commit

Permalink
simplify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Dec 16, 2024
1 parent ec46b20 commit e25a30e
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@
public class OptionalChainingOperatorTest {
@Test
public void requiresES6() {
Utils.runWithAllOptimizationLevels(
cx -> {
Scriptable scope = cx.initStandardObjects();
assertThrows(
EvaluatorException.class,
() -> cx.evaluateString(scope, "a?.b", "test.js", 0, null));
return null;
});
Utils.assertEvaluatorException_1_8("syntax error (test#1)", "a?.b");
}

@Test
Expand Down

0 comments on commit e25a30e

Please sign in to comment.