diff --git a/js/rhino/org/mozilla/javascript/NativeString.java b/js/rhino/org/mozilla/javascript/NativeString.java index cc96139e23e..6dd5f32de0c 100644 --- a/js/rhino/org/mozilla/javascript/NativeString.java +++ b/js/rhino/org/mozilla/javascript/NativeString.java @@ -88,9 +88,9 @@ public class NativeString extends ScriptableObject implements Wrapper { Object[] args, Function funObj) { - StringBuffer s = new java.lang.StringBuffer(); if (args.length < 1) return ""; + StringBuffer s = new java.lang.StringBuffer(); for (int i=0; i < args.length; i++) { s.append(ScriptRuntime.toUint16(args[i])); } diff --git a/js/rhino/src/org/mozilla/javascript/NativeString.java b/js/rhino/src/org/mozilla/javascript/NativeString.java index cc96139e23e..6dd5f32de0c 100644 --- a/js/rhino/src/org/mozilla/javascript/NativeString.java +++ b/js/rhino/src/org/mozilla/javascript/NativeString.java @@ -88,9 +88,9 @@ public class NativeString extends ScriptableObject implements Wrapper { Object[] args, Function funObj) { - StringBuffer s = new java.lang.StringBuffer(); if (args.length < 1) return ""; + StringBuffer s = new java.lang.StringBuffer(); for (int i=0; i < args.length; i++) { s.append(ScriptRuntime.toUint16(args[i])); }