Bug 215034

Summary: Date creation methods incorrectly clip to Int32
Product: WebKit Reporter: me
Component: JavaScriptCoreAssignee: Yusuke Suzuki <ysuzuki>
Status: NEW ---    
Severity: Normal CC: fpizlo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description me 2020-07-31 14:44:28 PDT
$ eshost -s -e 'Date.UTC(1970, 0, 1, 0, 0, 0, 2**32)'
#### ChakraCore, engine262, engine262+, GraalJS, Moddable XS, QuickJS, SpiderMonkey, V8
4294967296

#### JavaScriptCore
NaN

Relevant code here: https://github.com/WebKit/webkit/blob/de7fb331a9fb6ed6773508765f9498fb12f90b4d/Source/JavaScriptCore/runtime/DateConstructor.cpp#L84-L96
Comment 1 Radar WebKit Bug Importer 2020-08-01 12:59:39 PDT
<rdar://problem/66429109>