Skip to content

Commit

Permalink
next try
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 20, 2023
1 parent 271e314 commit 62f7cc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import org.htmlunit.corejs.javascript.Script;
import org.htmlunit.corejs.javascript.ScriptRuntime;
import org.htmlunit.corejs.javascript.Scriptable;
import org.htmlunit.corejs.javascript.WrapFactory;
import org.htmlunit.corejs.javascript.debug.Debugger;
import org.htmlunit.html.HtmlElement;
import org.htmlunit.html.HtmlPage;
Expand All @@ -60,7 +59,6 @@ public class HtmlUnitContextFactory extends ContextFactory {
private final BrowserVersion browserVersion_;
private long timeout_;
private Debugger debugger_;
private final WrapFactory wrapFactory_ = new HtmlUnitWrapFactory();
private boolean deminifyFunctionCode_;

/**
Expand Down Expand Up @@ -293,7 +291,8 @@ protected Context makeContext() {
cx.setInstructionObserverThreshold(INSTRUCTION_COUNT_THRESHOLD);

cx.setErrorReporter(new HtmlUnitErrorReporter(webClient_.getJavaScriptErrorListener()));
cx.setWrapFactory(wrapFactory_);
// We don't want to wrap String & Co.
cx.getWrapFactory().setJavaPrimitiveWrap(false);

if (debugger_ != null) {
cx.setDebugger(debugger_, null);
Expand Down
36 changes: 0 additions & 36 deletions src/main/java/org/htmlunit/javascript/HtmlUnitWrapFactory.java

This file was deleted.

0 comments on commit 62f7cc1

Please sign in to comment.