changeset 500:bbc4e9d37315

8022676: Confusing error message checking instanceof non-class Reviewed-by: jlaskey, sundar Contributed-by: michael.horowitz@oracle.com
author jlaskey
date Mon, 12 Aug 2013 18:00:17 -0300
parents a0807e889be3
children ba507ac08719
files src/jdk/nashorn/internal/runtime/resources/Messages.properties
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk/nashorn/internal/runtime/resources/Messages.properties	Mon Aug 12 20:37:09 2013 +0530
+++ b/src/jdk/nashorn/internal/runtime/resources/Messages.properties	Mon Aug 12 18:00:17 2013 -0300
@@ -100,7 +100,7 @@
 type.error.inconsistent.property.descriptor=inconsistent property descriptor
 type.error.bad.default.value=bad default value: {0}
 type.error.function.apply.expects.array=Function.prototype.apply expects an Array for second argument
-type.error.instanceof.on.non.object=instanceof cannot be used on objects without [[HasInstance]]
+type.error.instanceof.on.non.object=instanceof must be called with a javascript or java object as the right-hand argument
 type.error.cannot.convert.to.interface=object {0} cannot be converted to {1} due to "{2}"
 type.error.array.reduce.invalid.init=invalid initialValue for Array.prototype.reduce
 type.error.array.reduceright.invalid.init=invalid initialValue for Array.prototype.reduceRight