Call NativeArray.getLength() instead of deprecated NativeArray.jsGet_length()

This commit is contained in:
igor%mir2.org 2002-11-12 09:41:09 +00:00
parent 6e859f553a
commit efd9f298ab
2 changed files with 2 additions and 2 deletions

View File

@ -629,7 +629,7 @@ WrapFactory#wrap(Context cx, Scriptable scope, Object obj, Class)}
// Make a new java array, and coerce the JS array components
// to the target (component) type.
NativeArray array = (NativeArray) value;
long length = array.jsGet_length();
long length = array.getLength();
Class arrayType = type.getComponentType();
Object Result = Array.newInstance(arrayType, (int)length);
for (int i = 0 ; i < length ; ++i) {

View File

@ -277,7 +277,7 @@ public class Main {
}
}
NativeArray h = global.history;
h.put((int)h.jsGet_length(), h, source);
h.put((int)h.getLength(), h, source);
}
global.getErr().println();
} else processFile(cx, global, filename);