Skip to content

Commit

Permalink
remove the optimizer package (no longer jdk 8 complient)
Browse files Browse the repository at this point in the history
fix one test
  • Loading branch information
rbri committed Oct 12, 2024
1 parent d07b489 commit 77c4b85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.htmlunit</groupId>
<artifactId>htmlunit-core-js</artifactId>
<version>4.4.0</version>
<version>4.5.0-SNAPSHOT</version>
<name>HtmlUnit JavaScript Engine</name>
<organization>
<name>HtmlUnit</name>
Expand Down Expand Up @@ -128,6 +128,9 @@
<includes>
<include>**/*.java</include>
</includes>
<excludes>
<exclude>javascript/optimizer/**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>../htmlunit-rhino-fork/rhino-tools/src/main/java/org/mozilla</directory>
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/htmlunit/corejs/StackTraceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public void testFailureStackTrace() {
final String source2 = "function f2() { 'H'.toLowerCase(); throw 'hello'; }; f2();";

runWithExpectedStackTrace(source1,
"\tat test.js (f2)" + lineSeparator + "\tat test.js" + lineSeparator); // works
"\tat test.js:0 (f2)" + lineSeparator + "\tat test.js:0" + lineSeparator); // works
runWithExpectedStackTrace(source2,
"\tat test.js (f2)" + lineSeparator + "\tat test.js" + lineSeparator); // fails
"\tat test.js:0 (f2)" + lineSeparator + "\tat test.js:0" + lineSeparator); // fails
}

private static void runWithExpectedStackTrace(final String _source, final String _expectedStackTrace) {
Expand Down

0 comments on commit 77c4b85

Please sign in to comment.