added a new ctor for JSDate
[org.ibex.js.git] / src / org / ibex / js / JSDate.java
index 19e4fc6..324ef68 100644 (file)
@@ -890,6 +890,8 @@ public class JSDate extends JS.Immutable {
     private static double _toNumber(JS o) throws JSExn { return JSU.toDouble(o); }
     private static double _toNumber(JS[] o, int index) throws JSExn { return JSU.toDouble(o[index]); }
 
+    public JSDate(long l) throws JSExn { this.date = (double)l; }
+
     public JSDate(JS[] args) throws JSExn {
 
         JSDate obj = this;