Skip to content

Commit f0ec036

Browse files
committed
fix test
1 parent baacfd9 commit f0ec036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/htmlunit/corejs/NativeErrorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void stack() throws Exception {
2222
+ " null.method();\n"
2323
+ " } catch (e) {\n"
2424
+ " if (e.stack)\n"
25-
+ " output += e.stack.indexOf('\tat test.js:3 (test)') != -1;\n"
25+
+ " output += e.stack.indexOf('\tat test.js:2 (test)') != -1;\n"
2626
+ " else\n"
2727
+ " output += 'undefined';\n"
2828
+ " }\n"
@@ -31,7 +31,7 @@ public void stack() throws Exception {
3131
+ "test();\n"
3232
+ "output";
3333

34-
Utils.assertWithAllModes_ES6(Boolean.TRUE, script);
34+
Utils.assertWithAllModes_ES6("true", script);
3535
}
3636

3737
/**

0 commit comments

Comments
 (0)