RESOLVED FIXED 234836
[JSC] Implement Temporal.Now.instant()
https://bugs.webkit.org/show_bug.cgi?id=234836
Summary [JSC] Implement Temporal.Now.instant()
Yusuke Suzuki
Reported 2022-01-04 01:11:22 PST
[JSC] Implement Temporal.Now.instant()
Attachments
Patch (9.24 KB, patch)
2022-01-04 01:13 PST, Yusuke Suzuki
ross.kirsling: review+
Yusuke Suzuki
Comment 1 2022-01-04 01:13:13 PST
Ross Kirsling
Comment 2 2022-01-04 10:33:03 PST
Comment on attachment 448273 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448273&action=review Seems good to me. > Source/WTF/wtf/PlatformUse.h:-92 > -/* On Windows, use QueryPerformanceCounter by default */ > -#if OS(WINDOWS) > -#define USE_QUERY_PERFORMANCE_COUNTER 1 > -#endif So the assumption is that nobody on Windows has a reason to turn this off? I suppose we should mention that in the ChangeLog.
Philip Chimento
Comment 3 2022-01-06 15:54:32 PST
Comment on attachment 448273 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448273&action=review Looks good! > Source/WTF/wtf/CurrentTime.cpp:201 > + return static_cast<Int128>(currentTime() * 1000000000); No idea if the WebKit coding style encourages or discourages this, but I usually prefer to include numeric separators, like 1'000'000'000, it makes it easier to see at a glance if there is a typo in the number of digits!
Radar WebKit Bug Importer
Comment 4 2022-01-11 01:12:16 PST
Yusuke Suzuki
Comment 5 2022-01-19 21:55:55 PST
Comment on attachment 448273 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448273&action=review >> Source/WTF/wtf/CurrentTime.cpp:201 >> + return static_cast<Int128>(currentTime() * 1000000000); > > No idea if the WebKit coding style encourages or discourages this, but I usually prefer to include numeric separators, like 1'000'000'000, it makes it easier to see at a glance if there is a typo in the number of digits! Changed.
Yusuke Suzuki
Comment 6 2022-01-19 21:56:13 PST
Comment on attachment 448273 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448273&action=review >> Source/WTF/wtf/PlatformUse.h:-92 >> -#endif > > So the assumption is that nobody on Windows has a reason to turn this off? I suppose we should mention that in the ChangeLog. Yes. Added.
Yusuke Suzuki
Comment 7 2022-01-19 22:02:03 PST
Note You need to log in before you can comment on or make changes to this bug.