diff options
author | David Fugate <dfugate@microsoft.com> | 2012-03-26 13:50:38 -0700 |
---|---|---|
committer | David Fugate <dfugate@microsoft.com> | 2012-03-26 13:50:38 -0700 |
commit | 3c96d5835061bd7c572689060dcde68f1e0641f7 (patch) | |
tree | 77ae5c8a4c7ad14504092489f82d56d25ba41b29 /test/harness/sta.js | |
parent | 3fa7de6e299159301e92abbfd3acf3b4f5957c9d (diff) | |
download | test262-3c96d5835061bd7c572689060dcde68f1e0641f7.tar.gz |
Fixed https://bugs.ecmascript.org/show_bug.cgi?id=293. ConstructDate cannot be
salvaged (e.g., need locale info to properly predict whether we're subject to
DST).
Diffstat (limited to 'test/harness/sta.js')
-rw-r--r-- | test/harness/sta.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/harness/sta.js b/test/harness/sta.js index dbbf77075..5380639e0 100644 --- a/test/harness/sta.js +++ b/test/harness/sta.js @@ -771,6 +771,9 @@ function TimeClip(time) { }
//Test Functions
+//ConstructDate is considered deprecated, and should not be used directly from
+//test262 tests as it's incredibly sensitive to DST start/end dates that
+//vary with geographic location.
function ConstructDate(year, month, date, hours, minutes, seconds, ms){
/*
* 1. Call ToNumber(year)
@@ -804,7 +807,8 @@ function ConstructDate(year, month, date, hours, minutes, seconds, ms){ var r10 = MakeTime(r4, r5, r6, r7);
var r11 = MakeDate(r9, r10);
- return TimeClip(UTC(r11));
+ var retVal = TimeClip(UTC(r11));
+ return retVal;
}
|