From b912fb1d8e4aa02d4a6041aac26ec877b9810cb6 Mon Sep 17 00:00:00 2001 From: "norris%netscape.com" Date: Thu, 6 May 1999 23:17:12 +0000 Subject: [PATCH] Marginal performance tweak. --- js/rhino/org/mozilla/javascript/NativeString.java | 2 +- js/rhino/src/org/mozilla/javascript/NativeString.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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])); }