[minijoe] r81 committed - Added a distinctive native ID for toGMTString()

0 views
Skip to first unread message

min...@googlecode.com

unread,
Oct 1, 2010, 7:02:08 PM10/1/10
to min...@googlegroups.com
Revision: 81
Author: orientalsensation
Date: Fri Oct 1 16:01:11 2010
Log: Added a distinctive native ID for toGMTString()
http://code.google.com/p/minijoe/source/detail?r=81

Modified:
/trunk/src/com/google/minijoe/sys/JsDate.java

=======================================
--- /trunk/src/com/google/minijoe/sys/JsDate.java Fri Oct 1 14:45:00 2010
+++ /trunk/src/com/google/minijoe/sys/JsDate.java Fri Oct 1 16:01:11 2010
@@ -63,6 +63,7 @@
private static final int ID_SET_FULL_YEAR = 940;
private static final int ID_SET_UTC_FULL_YEAR = 941;
private static final int ID_TO_UTC_STRING = 942;
+ private static final int ID_TO_GMT_STRING = 943;

/**
* Prototype for JS Date instances.
@@ -106,7 +107,7 @@
.addVar("setFullYear", new JsFunction(ID_SET_FULL_YEAR, 1))
.addVar("setUTCFullYear", new JsFunction(ID_SET_UTC_FULL_YEAR, 1))
.addVar("toUTCString", new JsFunction(ID_TO_UTC_STRING, 0))
- .addVar("toGMTString", new JsFunction(ID_TO_UTC_STRING, 0));
+ .addVar("toGMTString", new JsFunction(ID_TO_GMT_STRING, 0));

Calendar time = Calendar.getInstance();

@@ -342,6 +343,7 @@
break;

case ID_TO_UTC_STRING:
+ case ID_TO_GMT_STRING:
stack.setObject(sp, toString(true, true, true));
break;

Reply all
Reply to author
Forward
0 new messages