Bug 215034 - Date creation methods incorrectly clip to Int32
Summary: Date creation methods incorrectly clip to Int32
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-07-31 14:44 PDT by me
Modified: 2020-08-16 01:55 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>