Patch from Attila Szegedi <szegedia@freemail.hu> to fix bug 258958

This commit is contained in:
igor%mir2.org 2004-09-12 16:39:39 +00:00
Родитель 2e956756ac
Коммит a4aeaa0d97
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -17,6 +17,7 @@
*
* Contributor(s):
* Norris Boyd
* Attila Szegedi
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
@ -135,7 +136,7 @@ public class ScriptableOutputStream extends ObjectOutputStream {
Object result = scope;
while (st.hasMoreTokens()) {
String s = st.nextToken();
result = ((Scriptable)result).get(s, (Scriptable)result);
result = ScriptableObject.getProperty((Scriptable)result, s);
if (result == null || !(result instanceof Scriptable))
break;
}