Fix bug 37317.

git-svn-id: svn://10.0.0.236/trunk@67319 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
norris%netscape.com
2000-04-26 23:33:25 +00:00
parent 3a55dd1f0f
commit d1cd56f4c1
2 changed files with 24 additions and 2 deletions

View File

@@ -277,6 +277,17 @@ public class JavaAdapter extends ScriptableObject {
return Context.getUndefinedValue();
}
public static Scriptable toObject(Object value, Scriptable scope,
Class staticType)
{
Context.enter();
try {
return Context.toObject(value, scope, staticType);
} finally {
Context.exit();
}
}
private static void generateCtor(ClassFileWriter cfw, String adapterName,
String superName)
{
@@ -547,7 +558,7 @@ public class JavaAdapter extends ScriptableObject {
"Ljava/lang/Class;");
cfw.add(ByteCode.INVOKESTATIC,
"org/mozilla/javascript/Context",
"org/mozilla/javascript/JavaAdapter",
"toObject",
"(Ljava/lang/Object;" +
"Lorg/mozilla/javascript/Scriptable;" +

View File

@@ -277,6 +277,17 @@ public class JavaAdapter extends ScriptableObject {
return Context.getUndefinedValue();
}
public static Scriptable toObject(Object value, Scriptable scope,
Class staticType)
{
Context.enter();
try {
return Context.toObject(value, scope, staticType);
} finally {
Context.exit();
}
}
private static void generateCtor(ClassFileWriter cfw, String adapterName,
String superName)
{
@@ -547,7 +558,7 @@ public class JavaAdapter extends ScriptableObject {
"Ljava/lang/Class;");
cfw.add(ByteCode.INVOKESTATIC,
"org/mozilla/javascript/Context",
"org/mozilla/javascript/JavaAdapter",
"toObject",
"(Ljava/lang/Object;" +
"Lorg/mozilla/javascript/Scriptable;" +