Hmmm, new changes these are.

This commit is contained in:
rogerl@netscape.com
1999-05-26 01:01:07 +00:00
parent 0b3b99961a
commit ba395e95da
13 changed files with 226 additions and 144 deletions
+18
View File
@@ -0,0 +1,18 @@
class NativeNumber extends JSObject {
NativeNumber(double p) {
super("Number");
d = p;
}
JSValue defaultValue(Environment theEnv, String hint) {
if (hint.equals("String"))
return new JSString(Double.toString(d));
else
return new JSDouble(d);
}
double d;
}