<?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>86128</bug_id>
          
          <creation_ts>2012-05-10 12:29:21 -0700</creation_ts>
          <short_desc>Error stack should not be read only</short_desc>
          <delta_ts>2021-04-21 14:18:08 -0700</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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>86442</dependson>
          <blocked>85057</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Erik Arvidsson">arv</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashvayka</cc>
    
    <cc>barraclough</cc>
    
    <cc>beidson</cc>
    
    <cc>oliver</cc>
    
    <cc>saam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>620857</commentid>
    <comment_count>0</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2012-05-10 12:29:21 -0700</bug_when>
    <thetext>Both SpiderMonkey and V8 allows the stack property of error objects to be written to.

try {
  throw new Error;
} catch (ex) {
  ex.stack = 42;
  console.assert(e.stack === 42);
}

JSC fails because it treats stack as a read only property.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1545401</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shvayka">ashvayka</who>
    <bug_when>2019-06-17 14:50:25 -0700</bug_when>
    <thetext>This is fixed as of rev. 246497. Property descriptor of &quot;stack&quot;:

{
  &quot;value&quot;: &quot;global code\\nevaluateWithScopeExtension@[native code]\\n\\n_wrapCall&quot;,
  &quot;writable&quot;: true, // !
  &quot;enumerable&quot;: false,
  &quot;configurable&quot;: true
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1752928</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2021-04-21 14:18:08 -0700</bug_when>
    <thetext>*** Bug 86523 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>