setJavaPrimitiveWrap(false) in wrap factory and remove special handling for strings.
This commit is contained in:
parent
adba53e86a
commit
7dc1bb8a2f
1 changed files with 1 additions and 4 deletions
|
@ -71,6 +71,7 @@ public final class RhinoCore {
|
|||
|
||||
context.setCompileFunctionsWithDynamicScope(true);
|
||||
wrapper = new WrapMaker();
|
||||
wrapper.setJavaPrimitiveWrap(false);
|
||||
context.setWrapFactory(wrapper);
|
||||
|
||||
int optLevel = 0;
|
||||
|
@ -760,10 +761,6 @@ public final class RhinoCore {
|
|||
return getElementWrapper(obj);
|
||||
}
|
||||
|
||||
if (obj instanceof String) {
|
||||
return obj;
|
||||
}
|
||||
|
||||
return super.wrap(cx, scope, obj, staticType);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue