<?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>28797</bug_id>
          
          <creation_ts>2015-06-11 17:52:13 +0000</creation_ts>
          <short_desc>Use IsDetachedBuffer() for BufferSource types consistently</short_desc>
          <delta_ts>2015-07-07 08:07:02 +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>All</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="Anne">annevk</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <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>120916</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-06-11 17:52:13 +0000</bug_when>
    <thetext>http://heycam.github.io/webidl/#es-to-buffer-source

[[
V does not have an [[ArrayBufferData]] internal slot
]]

We should use IsDetachedBuffer instead as is already done elsewhere.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121844</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2015-07-07 06:21:03 +0000</bug_when>
    <thetext>https://github.com/heycam/webidl/commit/5458f0c741746ab43e0c5250fd8686fb4d31fdf8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121845</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-07-07 06:50:58 +0000</bug_when>
    <thetext>You forgot to remove the [[ArrayBufferData]] check. See http://ecma-international.org/ecma-262/6.0/#sec-isdetachedbuffer in particular.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121846</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2015-07-07 07:22:54 +0000</bug_when>
    <thetext>IsDetachedBuffer asserts that [[ArrayBufferData]] exists, rather than checks-and-throws if it does not exist. So I think callers of IsDetachedBuffer need to ensure that the value passed to it is already an object with an [[ArrayBufferData]].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121848</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-07-07 08:07:02 +0000</bug_when>
    <thetext>My bad.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>