<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>206233</bug_id>
          
          <creation_ts>2020-01-14 07:48:13 -0800</creation_ts>
          <short_desc>Offlineasm warnings with newer Ruby versions</short_desc>
          <delta_ts>2020-01-15 14:16:19 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>fpizlo</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1606386</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2020-01-14 07:48:13 -0800</bug_when>
    <thetext>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&amp;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606389</commentid>
    <comment_count>1</comment_count>
      <attachid>387655</attachid>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2020-01-14 07:52:28 -0800</bug_when>
    <thetext>Created attachment 387655
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606843</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2020-01-15 01:58:24 -0800</bug_when>
    <thetext>The failed test run from the “mac-wk1” EWS seems unrelated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1607003</commentid>
    <comment_count>3</comment_count>
      <attachid>387655</attachid>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-01-15 10:52:33 -0800</bug_when>
    <thetext>Comment on attachment 387655
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1607081</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-01-15 12:32:21 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 387655:

The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1607084</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-01-15 12:32:36 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 387655:

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1607161</commentid>
    <comment_count>6</comment_count>
      <attachid>387655</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-01-15 14:15:43 -0800</bug_when>
    <thetext>Comment on attachment 387655
Patch

Clearing flags on attachment: 387655

Committed r254637: &lt;https://trac.webkit.org/changeset/254637&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1607162</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-01-15 14:15:45 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1607163</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-15 14:16:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/58618860&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>387655</attachid>
            <date>2020-01-14 07:52:28 -0800</date>
            <delta_ts>2020-01-15 14:15:43 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-206233-20200114175227.patch</filename>
            <type>text/plain</type>
            <size>2138</size>
            <attacher name="Adrian Perez">aperez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjU0NTA5CmRpZmYgLS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlw
dENvcmUvQ2hhbmdlTG9nIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwppbmRleCBj
ZGJlYTg4M2U4N2E2YjEwMDhkNzUxZGQ3M2I2YTU3YzQ4Y2RkYmRlLi5jZTQzNGFlOWMzM2Q4NjJl
ZDk4NjUxZTljODcxYWUwMTk0MThmZjdlIDEwMDY0NAotLS0gYS9Tb3VyY2UvSmF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yaW5nKQogICAgICAgICAgICAgICAgIEBhbm5vdGF0aW9uID0gbmlsCiAgICAgICAgICAgICAg
ICAgQGlkeCArPSAyICMgQ29uc3VtZSB0aGUgbmV3bGluZSBhcyB3ZWxsLgorICAgICAgICAgICAg
ZWxzaWYgKEBpZHggPT0gQHRva2Vucy5sZW5ndGggYW5kIG5vdCBmaW5hbCkgb3IgKGZpbmFsIGFu
ZCBAdG9rZW5zW0BpZHhdID1+IGZpbmFsKQorICAgICAgICAgICAgICAgIGJyZWFrCiAgICAgICAg
ICAgICBlbHNpZiBAdG9rZW5zW0BpZHhdID09ICJcbiIKICAgICAgICAgICAgICAgICAjIGlnbm9y
ZQogICAgICAgICAgICAgICAgIEBpZHggKz0gMQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>