2004-11-30 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
authorCésar Natarén <cesar@mono-cvs.ximian.com>
Tue, 30 Nov 2004 17:41:26 +0000 (17:41 -0000)
committerCésar Natarén <cesar@mono-cvs.ximian.com>
Tue, 30 Nov 2004 17:41:26 +0000 (17:41 -0000)
* *Prototype.cs: return constructor.

svn path=/trunk/mcs/; revision=36852

mcs/class/Microsoft.JScript/Microsoft.JScript/ArrayPrototype.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/ChangeLog
mcs/class/Microsoft.JScript/Microsoft.JScript/DatePrototype.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/FunctionConstructor.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/FunctionPrototype.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/NumberPrototype.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/ObjectPrototype.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/RegExpPrototype.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/StringPrototype.cs
mcs/class/Microsoft.JScript/Microsoft.JScript/VBArrayPrototype.cs

index 72a39924f3ab78b615268bfcd7813dec2dcb26db..82a03fa9f94db9ef9072ed0296175d9003f71f40 100644 (file)
@@ -44,7 +44,7 @@ namespace Microsoft.JScript {
 
 
                public static ArrayConstructor constructor {
-                       get { throw new NotImplementedException (); }
+                       get { return ArrayConstructor.Ctr; }
                }
 
                [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Array_join)]
index 3feb9801dccf10d553b31f42582a45fd2478b929..c906447ab10fdafecc33365025a75aa13745cdfa 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-30  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>
+
+       * *Prototype.cs: return constructor.
+
 2004-11-25  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>
 
        * GlobalObject.cs: return the different kinds of object's
index 6046de4226cd6a636324da2d99716886e6e39bb0..6351d10f57002d38ca642f00e7dd7aa0b9ecbb5d 100644 (file)
@@ -40,7 +40,7 @@ namespace Microsoft.JScript {
                }
 
                public static DateConstructor constructor {
-                       get { throw new NotImplementedException (); }
+                       get { return DateConstructor.Ctr; }
                }
 
                [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Date_getDate)]
index d9c598e8f614779c02ae9bf0c82de10df12b04d1..bae77ef7526f6fd3a028332119db3536f9fba7e1 100644 (file)
@@ -33,7 +33,7 @@ namespace Microsoft.JScript {
 
        public class FunctionConstructor : ScriptFunction  {
 
-               internal FunctionConstructor Ctr = new FunctionConstructor ();
+               internal static FunctionConstructor Ctr = new FunctionConstructor ();
 
                internal FunctionConstructor ()
                {
index 6be4c74e8ee7262dc65a8b8406f69fda115382ba..3ebdc8a14be47732e1844aa424c849d6c6a2d1d4 100644 (file)
@@ -48,7 +48,7 @@ namespace Microsoft.JScript {
 
 
                public static FunctionConstructor constructor {
-                       get { throw new NotImplementedException (); }
+                       get { return FunctionConstructor.Ctr; }
                }
 
                [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Function_toString)]
index 0a0554068b8728fe5b6912f55cf1fa81b46d7657..15483e886df7ce6e2ad16289a76d108580077290 100644 (file)
@@ -35,7 +35,7 @@ namespace Microsoft.JScript {
        public class NumberPrototype : NumberObject {
 
                public static NumberConstructor constructor {
-                       get { throw new NotImplementedException (); }
+                       get { return NumberConstructor.Ctr; }
                }
 
                [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Number_toExponential)]
index 9abe1569223fd786e5cd3faab852de91a256e02c..07511515ffb6fa6bb45ae38b381077a43b619a7e 100644 (file)
@@ -35,7 +35,7 @@ namespace Microsoft.JScript {
        public class ObjectPrototype : JSObject {
 
                public static ObjectConstructor constructor {
-                       get { throw new NotImplementedException (); }
+                       get { return ObjectConstructor.Ctr; }
                }
 
                [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.Object_hasOwnProperty)]
index 03cc2f18f2f306c9b87fcf12a4cbef2bc9e705fb..36e6f4d3158f7ea2fd1cdb8aebe638838dcdb67d 100644 (file)
@@ -42,7 +42,7 @@ namespace Microsoft.JScript {
 
 
                public static RegExpConstructor constructor {
-                       get { throw new NotImplementedException (); }
+                       get { return RegExpConstructor.Ctr; }
                }
 
                [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.RegExp_exec)]
index 796c20742e1b70609b24e4d890020904fa68a550..831901641add125d5d3c4beffd7575723334698f 100644 (file)
@@ -79,7 +79,7 @@ namespace Microsoft.JScript {
 
 
                public static StringConstructor constructor {
-                       get { throw new NotImplementedException (); }
+                       get { return StringConstructor.Ctr; }
                }
 
                [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.String_fixed)]
index a94d8a26321a7c56ca726d219c0b1de37907f5bf..28b333efa27f99fc028f2088d4062c5aa8fc986e 100644 (file)
@@ -36,7 +36,7 @@ namespace Microsoft.JScript {
        public class VBArrayPrototype : JSObject {
 
                public static VBArrayConstructor constructor {
-                       get { throw new NotImplementedException (); }
+                       get { return VBArrayConstructor.Ctr; }
                }
 
                [JSFunctionAttribute (JSFunctionAttributeEnum.HasThisObject, JSBuiltin.VBArray_dimensions)]