Skip to content

Commit 4e4e02b

Browse files
rbrigbrail
authored andcommitted
runWithAllModes() should execute the test in interpreted mode first because debugging the interpreter case is easier
1 parent dc42171 commit 4e4e02b

File tree

1 file changed

+2
-2
lines changed
  • testutils/src/main/java/org/mozilla/javascript/testutils

1 file changed

+2
-2
lines changed

testutils/src/main/java/org/mozilla/javascript/testutils/Utils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public static void executeScript(String script, boolean interpreted) {
6363
* @param action the action to execute
6464
*/
6565
public static void runWithAllModes(final ContextAction<?> action) {
66-
runWithMode(action, false);
6766
runWithMode(action, true);
67+
runWithMode(action, false);
6868
}
6969

7070
/**
@@ -75,8 +75,8 @@ public static void runWithAllModes(final ContextAction<?> action) {
7575
*/
7676
public static void runWithAllModes(
7777
final ContextFactory contextFactory, final ContextAction<?> action) {
78-
runWithMode(contextFactory, action, false);
7978
runWithMode(contextFactory, action, true);
79+
runWithMode(contextFactory, action, false);
8080
}
8181

8282
/**

0 commit comments

Comments
 (0)