diff --git a/js/rhino/src/org/mozilla/javascript/Context.java b/js/rhino/src/org/mozilla/javascript/Context.java index 3a760520e1a2..02620be2f9cf 100644 --- a/js/rhino/src/org/mozilla/javascript/Context.java +++ b/js/rhino/src/org/mozilla/javascript/Context.java @@ -1343,18 +1343,29 @@ public class Context } } + /** + * @deprecated Use {@link #decompileScript(Script script, int indent)} + * instead. + *

+ * The implementation simply calls decompileScript(script, indent) + * ignoring the scope argument. + */ + public final String decompileScript(Script script, Scriptable scope, + int indent) + { + return decompileScript(script, indent); + } + /** * Decompile the script. *

* The canonical source of the script is returned. * * @param script the script to decompile - * @param scope the scope under which to decompile * @param indent the number of spaces to indent the result * @return a string representing the script source */ - public final String decompileScript(Script script, Scriptable scope, - int indent) + public final String decompileScript(Script script, int indent) { NativeFunction scriptImpl = (NativeFunction) script; return scriptImpl.decompile(indent, 0);