diff --git a/js/rhino/org/mozilla/javascript/Context.java b/js/rhino/org/mozilla/javascript/Context.java index 58a433b4e522..2114875e610b 100644 --- a/js/rhino/org/mozilla/javascript/Context.java +++ b/js/rhino/org/mozilla/javascript/Context.java @@ -956,7 +956,7 @@ public final class Context { /** * Create a new JavaScript object by executing the named constructor. * - * The call newObject("Foo") is equivalent to + * The call newObject(scope, "Foo") is equivalent to * evaluating "new Foo()". * * @param scope the scope to search for the constructor and to evaluate against diff --git a/js/rhino/src/org/mozilla/javascript/Context.java b/js/rhino/src/org/mozilla/javascript/Context.java index 58a433b4e522..2114875e610b 100644 --- a/js/rhino/src/org/mozilla/javascript/Context.java +++ b/js/rhino/src/org/mozilla/javascript/Context.java @@ -956,7 +956,7 @@ public final class Context { /** * Create a new JavaScript object by executing the named constructor. * - * The call newObject("Foo") is equivalent to + * The call newObject(scope, "Foo") is equivalent to * evaluating "new Foo()". * * @param scope the scope to search for the constructor and to evaluate against