Commit 1490a5c
committed
[JSC] Fix Win crash in Temporal since/until methods
https://bugs.webkit.org/show_bug.cgi?id=254650
Reviewed by Mark Lam.
Without a JSC testbot for Windows, we hadn't noticed that Temporal.{PlainDate, PlainTime}#{since, until} can crash.
The crux of the issue seems to be in having a static constexpr std::initializer_list array,
but this can just be a static local anyway.
* Source/JavaScriptCore/runtime/TemporalObject.cpp:
(JSC::extractDifferenceOptions):
Canonical link: https://commits.webkit.org/262273@main1 parent 6ffaec7 commit 1490a5c
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | 303 | | |
310 | 304 | | |
311 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
0 commit comments