- From: Eric Uhrhane via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 20 Aug 2010 01:05:43 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/file-system
In directory hutz:/tmp/cvs-serv30318
Modified Files:
file-writer.html
Log Message:
Clarify what happens if you truncate to a length at or beyond the length of the
file.
Index: file-writer.html
===================================================================
RCS file: /sources/public/2009/dap/file-system/file-writer.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- file-writer.html 16 Jul 2010 23:20:17 -0000 1.15
+++ file-writer.html 20 Aug 2010 01:05:41 -0000 1.16
@@ -649,6 +649,11 @@
<code>FileException</code> with error code
<code>INVALID_STATE_ERR</code> and terminate this overall series of
steps.</li>
+ <li>If <code>size</code> is greater than or equal to the
+ <code>length</code> of the <a>FileWriter</a>, throw a
+ <code>FileException</code> with error code
+ <code>INVALID_STATE_ERR</code> and terminate this overall series of
+ steps.</li>
<li>Set <code>readyState</code> to <code>WRITING</code>.</li>
<li>If an error occurs during truncate, set
<code>readyState</code> to <code>DONE</code>.
Received on Friday, 20 August 2010 01:05:44 UTC