Fix bug: All the standard object constructors were showing up as enumerable properties of the global object.

This commit is contained in:
norris%netscape.com 2000-05-02 17:36:47 +00:00
Родитель 9e6ec09a69
Коммит 9bf723214b
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -615,7 +615,8 @@ public final class Context {
ScriptableObject.defineClass(scope, c, sealed);
} else {
String s = "org.mozilla.javascript." + classes[i];
new LazilyLoadedCtor(scope, classes[i+1], s, 0);
new LazilyLoadedCtor(scope, classes[i+1], s,
ScriptableObject.DONTENUM);
}
} catch (ClassNotFoundException e) {
continue;

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

@ -615,7 +615,8 @@ public final class Context {
ScriptableObject.defineClass(scope, c, sealed);
} else {
String s = "org.mozilla.javascript." + classes[i];
new LazilyLoadedCtor(scope, classes[i+1], s, 0);
new LazilyLoadedCtor(scope, classes[i+1], s,
ScriptableObject.DONTENUM);
}
} catch (ClassNotFoundException e) {
continue;