Title: [287190] trunk/Tools
- Revision
- 287190
- Author
- [email protected]
- Date
- 2021-12-17 09:13:11 -0800 (Fri, 17 Dec 2021)
Log Message
Fix deprecation warning in Tools/Scripts/run-jsc-benchmarks
https://bugs.webkit.org/show_bug.cgi?id=234425
Patch by Alexey Shvayka <[email protected]> on 2021-12-17
Reviewed by Alex Christensen.
Ruby 2.4 unified Fixnum and Bignum classes into Integer [1], deprecating them as
implementation details. To get rid of the deprecation console message, this patch replaces
Fixnum type checks with Integer, which is unobservable and backwards-compatible.
[1] https://bugs.ruby-lang.org/issues/12005
* Scripts/run-jsc-benchmarks:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (287189 => 287190)
--- trunk/Tools/ChangeLog 2021-12-17 16:03:15 UTC (rev 287189)
+++ trunk/Tools/ChangeLog 2021-12-17 17:13:11 UTC (rev 287190)
@@ -1,3 +1,18 @@
+2021-12-17 Alexey Shvayka <[email protected]>
+
+ Fix deprecation warning in Tools/Scripts/run-jsc-benchmarks
+ https://bugs.webkit.org/show_bug.cgi?id=234425
+
+ Reviewed by Alex Christensen.
+
+ Ruby 2.4 unified Fixnum and Bignum classes into Integer [1], deprecating them as
+ implementation details. To get rid of the deprecation console message, this patch replaces
+ Fixnum type checks with Integer, which is unobservable and backwards-compatible.
+
+ [1] https://bugs.ruby-lang.org/issues/12005
+
+ * Scripts/run-jsc-benchmarks:
+
2021-12-16 Jonathan Bedard <[email protected]>
[reporelaypy] Accept pull-request hooks
Modified: trunk/Tools/Scripts/run-jsc-benchmarks (287189 => 287190)
--- trunk/Tools/Scripts/run-jsc-benchmarks 2021-12-17 16:03:15 UTC (rev 287189)
+++ trunk/Tools/Scripts/run-jsc-benchmarks 2021-12-17 17:13:11 UTC (rev 287190)
@@ -578,7 +578,7 @@
end
def jsonSanitize(value)
- if value.is_a? Fixnum
+ if value.is_a? Integer
value
elsif value.is_a? Float
if value.nan? or value.infinite?
@@ -1595,7 +1595,7 @@
end
def weightString
- raise unless weight.is_a? Fixnum
+ raise unless weight.is_a? Integer
raise unless weight >= 1
if weight == 1
""
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes