<?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>206840</bug_id>
          
          <creation_ts>2020-01-27 13:15:03 -0800</creation_ts>
          <short_desc>Python 3: generate-js-builtins hits SyntaxWarning for &quot;is 0&quot;</short_desc>
          <delta_ts>2020-01-27 15:24:14 -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 Nightly 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="Stephan Szabo">stephan.szabo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>jbedard</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1611548</commentid>
    <comment_count>0</comment_count>
    <who name="Stephan Szabo">stephan.szabo</who>
    <bug_when>2020-01-27 13:15:03 -0800</bug_when>
    <thetext>After switching up to python 3.8, generate-js-builtins.py hits a SyntaxWarning for the use of &quot;is 0&quot;.

Apparently, per https://bugs.python.org/issue34850 this sort of usage happens to work on CPython by accident, but is not guaranteed to work on other python implementation or necessarily continue working in CPython.
The warning suggests replacing is with == for such cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611551</commentid>
    <comment_count>1</comment_count>
      <attachid>388892</attachid>
    <who name="Stephan Szabo">stephan.szabo</who>
    <bug_when>2020-01-27 13:23:26 -0800</bug_when>
    <thetext>Created attachment 388892
Replace use of &quot;is 0&quot; with &quot;== 0&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611553</commentid>
    <comment_count>2</comment_count>
    <who name="EWS Watchlist">ews-watchlist</who>
    <bug_when>2020-01-27 13:24:09 -0800</bug_when>
    <thetext>This patch modifies the JS builtins code generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-builtins-generator-tests --reset-results`)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611581</commentid>
    <comment_count>3</comment_count>
      <attachid>388892</attachid>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2020-01-27 13:46:24 -0800</bug_when>
    <thetext>Comment on attachment 388892
Replace use of &quot;is 0&quot; with &quot;== 0&quot;.

rs=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611655</commentid>
    <comment_count>4</comment_count>
      <attachid>388892</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-01-27 15:23:05 -0800</bug_when>
    <thetext>Comment on attachment 388892
Replace use of &quot;is 0&quot; with &quot;== 0&quot;.

Clearing flags on attachment: 388892

Committed r255186: &lt;https://trac.webkit.org/changeset/255186&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611656</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-01-27 15:23:06 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611657</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-27 15:24:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/58936818&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>388892</attachid>
            <date>2020-01-27 13:23:26 -0800</date>
            <delta_ts>2020-01-27 15:23:05 -0800</delta_ts>
            <desc>Replace use of &quot;is 0&quot; with &quot;== 0&quot;.</desc>
            <filename>206840.1.diff</filename>
            <type>text/plain</type>
            <size>1330</size>
            <attacher name="Stephan Szabo">stephan.szabo</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cgYi9Tb3VyY2UvSmF2
YVNjcmlwdENvcmUvQ2hhbmdlTG9nCmluZGV4IGUzYTc2YjA0NjVhLi4wZDNkYWFmZjA5MCAxMDA2
NDQKLS0tIGEvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZworKysgYi9Tb3VyY2UvSmF2
YVNjcmlwdENvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTIgQEAKKzIwMjAtMDEtMjcgIFN0ZXBo
YW4gU3phYm8gIDxzdGVwaGFuLnN6YWJvQHNvbnkuY29tPgorCisgICAgICAgIFB5dGhvbiAzOiBn
ZW5lcmF0ZS1qcy1idWlsdGlucyBoaXRzIFN5bnRheFdhcm5pbmcgZm9yICJpcyAwIgorICAgICAg
ICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjA2ODQwCisKKyAgICAg
ICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiBTY3JpcHRzL2dlbmVy
YXRlLWpzLWJ1aWx0aW5zLnB5OiBSZXBsYWNlIGlzIDAgd2l0aCA9PSAwCisKIDIwMjAtMDEtMjcg
IEpvbmF0aGFuIEJlZGFyZCAgPGpiZ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