Title: [294000] trunk/Source/_javascript_Core
- Revision
- 294000
- Author
- [email protected]
- Date
- 2022-05-09 22:20:24 -0700 (Mon, 09 May 2022)
Log Message
Unreviewed, address Darin's feedback on r250361.
* runtime/JSCJSValueInlines.h:
(JSC::JSValue::toIntegerWithoutRounding const):
Normalize away -0 by unconditionally adding positive 0 (instead of making a separate zero check).
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (293999 => 294000)
--- trunk/Source/_javascript_Core/ChangeLog 2022-05-10 05:08:23 UTC (rev 293999)
+++ trunk/Source/_javascript_Core/ChangeLog 2022-05-10 05:20:24 UTC (rev 294000)
@@ -1,5 +1,13 @@
2022-05-09 Ross Kirsling <[email protected]>
+ Unreviewed, address Darin's feedback on r250361.
+
+ * runtime/JSCJSValueInlines.h:
+ (JSC::JSValue::toIntegerWithoutRounding const):
+ Normalize away -0 by unconditionally adding positive 0 (instead of making a separate zero check).
+
+2022-05-09 Ross Kirsling <[email protected]>
+
Temporal round and total methods should accept string param
https://bugs.webkit.org/show_bug.cgi?id=240249
Modified: trunk/Source/_javascript_Core/runtime/JSCJSValueInlines.h (293999 => 294000)
--- trunk/Source/_javascript_Core/runtime/JSCJSValueInlines.h 2022-05-10 05:08:23 UTC (rev 293999)
+++ trunk/Source/_javascript_Core/runtime/JSCJSValueInlines.h 2022-05-10 05:20:24 UTC (rev 294000)
@@ -118,7 +118,7 @@
if (isInt32())
return asInt32();
double d = toNumber(globalObject);
- return (std::isnan(d) || !d) ? 0.0 : d;
+ return std::isnan(d) ? 0.0 : d + 0.0;
}
// https://tc39.es/ecma262/#sec-tointegerorinfinity
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes