Fix bug 48930: work around a MS JIT bug.

This commit is contained in:
nboyd%atg.com 2000-08-22 17:04:21 +00:00
parent 0fe676957d
commit c03250308b
4 changed files with 4 additions and 6 deletions

View File

@ -883,8 +883,6 @@ public class NativeJavaObject implements Scriptable, Wrapper {
}
public static void initJSObject() {
if (!Context.useJSObject)
return;
// if netscape.javascript.JSObject is in the CLASSPATH, enable JSObject
// compatability wrappers
jsObjectClass = null;

View File

@ -91,7 +91,8 @@ public class NativeJavaPackage extends ScriptableObject {
for (int i = 0; i < commonPackages.length; i++)
packages.forcePackage(commonPackages[i]);
NativeJavaObject.initJSObject();
if (Context.useJSObject)
NativeJavaObject.initJSObject();
Method[] m = FunctionObject.findMethods(NativeJavaPackage.class,
"jsFunction_getClass");

View File

@ -883,8 +883,6 @@ public class NativeJavaObject implements Scriptable, Wrapper {
}
public static void initJSObject() {
if (!Context.useJSObject)
return;
// if netscape.javascript.JSObject is in the CLASSPATH, enable JSObject
// compatability wrappers
jsObjectClass = null;

View File

@ -91,7 +91,8 @@ public class NativeJavaPackage extends ScriptableObject {
for (int i = 0; i < commonPackages.length; i++)
packages.forcePackage(commonPackages[i]);
NativeJavaObject.initJSObject();
if (Context.useJSObject)
NativeJavaObject.initJSObject();
Method[] m = FunctionObject.findMethods(NativeJavaPackage.class,
"jsFunction_getClass");