From af6971af4716390714c36e858005fb5b2da7c6d1 Mon Sep 17 00:00:00 2001 From: "nboyd%atg.com" Date: Tue, 27 Mar 2001 14:01:53 +0000 Subject: [PATCH] Fix 73555. --- js/rhino/org/mozilla/javascript/IdFunction.java | 4 ++-- js/rhino/src/org/mozilla/javascript/IdFunction.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/rhino/org/mozilla/javascript/IdFunction.java b/js/rhino/org/mozilla/javascript/IdFunction.java index aae8972474b..92f40d7d026 100644 --- a/js/rhino/org/mozilla/javascript/IdFunction.java +++ b/js/rhino/org/mozilla/javascript/IdFunction.java @@ -88,7 +88,7 @@ public class IdFunction extends ScriptableObject implements Function functionType = type; } - public String getClassName() { return "NativeMethod"; } + public String getClassName() { return "Function"; } public boolean has(String name, Scriptable start) { return nameToId(name) != 0 || super.has(name, start); @@ -164,7 +164,7 @@ public class IdFunction extends ScriptableObject implements Function } public Scriptable getPrototype() { - // For native functions this does not called often so it is better + // For native functions this is not called often so it is better // to run this expensive operation here and not in constructor return getFunctionPrototype(getParentScope()); } diff --git a/js/rhino/src/org/mozilla/javascript/IdFunction.java b/js/rhino/src/org/mozilla/javascript/IdFunction.java index aae8972474b..92f40d7d026 100644 --- a/js/rhino/src/org/mozilla/javascript/IdFunction.java +++ b/js/rhino/src/org/mozilla/javascript/IdFunction.java @@ -88,7 +88,7 @@ public class IdFunction extends ScriptableObject implements Function functionType = type; } - public String getClassName() { return "NativeMethod"; } + public String getClassName() { return "Function"; } public boolean has(String name, Scriptable start) { return nameToId(name) != 0 || super.has(name, start); @@ -164,7 +164,7 @@ public class IdFunction extends ScriptableObject implements Function } public Scriptable getPrototype() { - // For native functions this does not called often so it is better + // For native functions this is not called often so it is better // to run this expensive operation here and not in constructor return getFunctionPrototype(getParentScope()); }