From 9bf723214b9ed7c5820a2ba98318c5111424d0a9 Mon Sep 17 00:00:00 2001 From: "norris%netscape.com" Date: Tue, 2 May 2000 17:36:47 +0000 Subject: [PATCH] Fix bug: All the standard object constructors were showing up as enumerable properties of the global object. --- js/rhino/org/mozilla/javascript/Context.java | 3 ++- js/rhino/src/org/mozilla/javascript/Context.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/rhino/org/mozilla/javascript/Context.java b/js/rhino/org/mozilla/javascript/Context.java index bf76f752be7f..b07fe6ed4848 100644 --- a/js/rhino/org/mozilla/javascript/Context.java +++ b/js/rhino/org/mozilla/javascript/Context.java @@ -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; diff --git a/js/rhino/src/org/mozilla/javascript/Context.java b/js/rhino/src/org/mozilla/javascript/Context.java index bf76f752be7f..b07fe6ed4848 100644 --- a/js/rhino/src/org/mozilla/javascript/Context.java +++ b/js/rhino/src/org/mozilla/javascript/Context.java @@ -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;