Skip to content

Commit ebea188

Browse files
rbrigbrail
authored andcommitted
call static methods using the correct class
1 parent d8e2fe1 commit ebea188

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rhino-tools/src/main/java/org/mozilla/javascript/tools/shell/ExecUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private static Object[] parseAddArgs(Scriptable params, Scriptable scope) {
193193
if (obj == Scriptable.NOT_FOUND) {
194194
return emptyArray;
195195
}
196-
Scriptable s = Context.toObject(obj, Global.getTopLevelScope(scope));
196+
Scriptable s = Context.toObject(obj, ScriptableObject.getTopLevelScope(scope));
197197
return ScriptRuntime.getArrayElements(s);
198198
}
199199

rhino/src/main/java/org/mozilla/javascript/NativeBoolean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public String getClassName() {
5151
}
5252

5353
private static boolean toValue(Scriptable thisObj) {
54-
return LambdaConstructor.ensureType(thisObj, NativeBoolean.class, "Boolean").booleanValue;
54+
return ScriptableObject.ensureType(thisObj, NativeBoolean.class, "Boolean").booleanValue;
5555
}
5656

5757
@Override

0 commit comments

Comments
 (0)