mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Fix bug 48930: work around a MS JIT bug.
This commit is contained in:
parent
0fe676957d
commit
c03250308b
@ -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;
|
||||
|
@ -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");
|
||||
|
@ -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;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user