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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11175</bug_id>
          
          <creation_ts>2010-10-30 02:31:56 +0000</creation_ts>
          <short_desc>Point out that the behaviour of assigning to properties corresponding to read only attributes</short_desc>
          <delta_ts>2011-04-07 23:24:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cameron McCormack">cam</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>brendan</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41865</commentid>
    <comment_count>0</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2010-10-30 02:31:56 +0000</bug_when>
    <thetext>Point out in the spec that in the ES binding, read only attributes cause accessor properties to exist with a getter but no setter, which means that assigning to them will be silently ignored normally and will throw an exception in strict mode.

http://www.w3.org/mid/9768D477C67135458BF978A45BCF9B38214AF1@TK5EX14MBXW604.wingroup.windeplo
y.ntdev.microsoft.com</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41867</commentid>
    <comment_count>1</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-10-30 03:26:20 +0000</bug_when>
    <thetext>I thought that even in non-strict mode, assigning to a property with a getter but no setter would throw. At least that&apos;s been the case in gecko for a long time.

What does ES5 say?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41868</commentid>
    <comment_count>2</comment_count>
    <who name="Brendan Eich">brendan</who>
    <bug_when>2010-10-30 03:35:07 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I thought that even in non-strict mode, assigning to a property with a getter
&gt; but no setter would throw. At least that&apos;s been the case in gecko for a long
&gt; time.
&gt; 
&gt; What does ES5 say?

What Cameron said in comment 0.

/be</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47244</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-04-07 23:24:10 +0000</bug_when>
    <thetext>Done: http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.html.diff?r1=1.262;r2=1.263;f=h</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>