WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
206233
Offlineasm warnings with newer Ruby versions
https://bugs.webkit.org/show_bug.cgi?id=206233
Summary
Offlineasm warnings with newer Ruby versions
Adrian Perez
Reported
2020-01-14 07:48:13 PST
Using Ruby 2.7 the following will be printed out: /home/aperez/WebKit/Source/JavaScriptCore/offlineasm/parser.rb:631: warning: deprecated Object#=~ is called on Annotation; it always returns nil This is caused by the following change in Ruby:
https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=65989&view=revision
I see that the Annotation class does *not* define an overload for the =~ operator, so previously applying it to an Annotation instance was already returning “nil” (but silently). Therefore I *think* that swapping the checks in the code to something like if @tokens[@idx].is_a? Annotation # ... elsif (@idx == @tokens.length and not final) or (final and @tokens[@idx] =~ final) # ... should both silence the warning and still be correct. Note that I do not have much experience with Ruby, nor with modifying offlineasm, so suggestions are definitely welcome.
Attachments
Patch
(2.09 KB, patch)
2020-01-14 07:52 PST
,
Adrian Perez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Adrian Perez
Comment 1
2020-01-14 07:52:28 PST
Created
attachment 387655
[details]
Patch
Adrian Perez
Comment 2
2020-01-15 01:58:24 PST
The failed test run from the “mac-wk1” EWS seems unrelated.
Yusuke Suzuki
Comment 3
2020-01-15 10:52:33 PST
Comment on
attachment 387655
[details]
Patch r=me
WebKit Commit Bot
Comment 4
2020-01-15 12:32:21 PST
The commit-queue encountered the following flaky tests while processing
attachment 387655
[details]
: The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 5
2020-01-15 12:32:36 PST
The commit-queue encountered the following flaky tests while processing
attachment 387655
[details]
: media/track/track-cues-sorted-before-dispatch.html
bug 206225
(authors:
simon.pena@samsung.com
and
vcarbune@chromium.org
) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 6
2020-01-15 14:15:43 PST
Comment on
attachment 387655
[details]
Patch Clearing flags on attachment: 387655 Committed
r254637
: <
https://trac.webkit.org/changeset/254637
>
WebKit Commit Bot
Comment 7
2020-01-15 14:15:45 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8
2020-01-15 14:16:19 PST
<
rdar://problem/58618860
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug