зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug: All the standard object constructors were showing up as enumerable properties of the global object.
This commit is contained in:
Родитель
9e6ec09a69
Коммит
9bf723214b
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче