setJavaPrimitiveWrap(false) in wrap factory and remove special handling for strings.

This commit is contained in:
hns 2003-08-18 10:28:45 +00:00
parent adba53e86a
commit 7dc1bb8a2f

View file

@ -71,6 +71,7 @@ public final class RhinoCore {
context.setCompileFunctionsWithDynamicScope(true); context.setCompileFunctionsWithDynamicScope(true);
wrapper = new WrapMaker(); wrapper = new WrapMaker();
wrapper.setJavaPrimitiveWrap(false);
context.setWrapFactory(wrapper); context.setWrapFactory(wrapper);
int optLevel = 0; int optLevel = 0;
@ -760,10 +761,6 @@ public final class RhinoCore {
return getElementWrapper(obj); return getElementWrapper(obj);
} }
if (obj instanceof String) {
return obj;
}
return super.wrap(cx, scope, obj, staticType); return super.wrap(cx, scope, obj, staticType);
} }