-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove time zone argument from Absolute.toString
Instead of choosing a time zone in which to serialize an Absolute, the recommended way to keep a time stamp with a time zone is LocalDateTime (either serialized or not.) Closes: #741
- Loading branch information
Showing
14 changed files
with
39 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 0 additions & 84 deletions
84
polyfill/test/Absolute/prototype/toString/argument-missing.js
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
polyfill/test/Absolute/prototype/toString/timezone-no-effect.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (C) 2020 Igalia, S.L. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
|
||
/*--- | ||
esid: sec-temporal.absolute.prototype.tostring | ||
includes: [compareArray.js] | ||
---*/ | ||
|
||
const absolute = Temporal.Absolute.from("1975-02-02T14:25:36.123456Z"); | ||
|
||
Object.defineProperty(Temporal.TimeZone, "from", { | ||
get() { | ||
throw new Test262Error("should not get Temporal.TimeZone.from"); | ||
}, | ||
}); | ||
|
||
assert.sameValue(absolute.toString(), "1975-02-02T14:25:36.123456Z"); |
31 changes: 0 additions & 31 deletions
31
polyfill/test/Absolute/prototype/toString/timezone-no-tostring.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.