Bug 215034
| Summary: | Date creation methods incorrectly clip to Int32 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | me |
| Component: | JavaScriptCore | Assignee: | 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 | ||
me
$ 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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/66429109>