<?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>217308</bug_id>
          
          <creation_ts>2020-10-04 23:28:38 -0700</creation_ts>
          <short_desc>A question about constructor</short_desc>
          <delta_ts>2021-02-01 02:26:20 -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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>220429</dup_id>
          
          <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="NWU_NISL">nisl_grammarly1</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashvayka</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1694640</commentid>
    <comment_count>0</comment_count>
    <who name="NWU_NISL">nisl_grammarly1</who>
    <bug_when>2020-10-04 23:28:38 -0700</bug_when>
    <thetext>#Version：
d940b47

#Testcase:
var f = function (){
    var x = 42; 
    new x(x = function (){});
}; 
f();

#Command:
./webkit/WebKitBuild/Release/bin/jsc testcase.js

#Output:

#Expected output:
TypeError: x is not a constructor

#Description:
When executing the above testcase, other engines threw a TypeError exception, such as v8, spiderMonkey, etc. But JavaScriptCore passed normally without throwing any exceptions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1694957</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-10-05 17:01:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/69977289&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1724154</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2021-02-01 02:26:07 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 220429 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1724156</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2021-02-01 02:26:20 -0800</bug_when>
    <thetext>Thanks, this is fixed in bug 220429!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>