Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Unified Diff: Source/core/dom/DataView.idl

Issue 927323002: Add TypeChecking=Unrestricted to DataView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DataView.idl
diff --git a/Source/core/dom/DataView.idl b/Source/core/dom/DataView.idl
index 7332c719208db3a20831882343aa1161ad3f8f46..957879b9d4829371e49284113e566dab15841689 100644
--- a/Source/core/dom/DataView.idl
+++ b/Source/core/dom/DataView.idl
@@ -28,7 +28,7 @@
[
Exposed=(Window,Worker),
ImplementedAs=DOMDataView,
- TypeChecking=Interface,
+ TypeChecking=(Interface,Unrestricted),
] interface DataView : ArrayBufferView {
// All these methods raise an exception if they would read or write beyond the end of the view.
@@ -40,7 +40,6 @@
[RaisesException] long getInt32(unsigned long byteOffset, optional boolean littleEndian);
[RaisesException] unsigned long getUint32(unsigned long byteOffset, optional boolean littleEndian);
- // Use custom code to handle NaN case for JSC.
[RaisesException] float getFloat32(unsigned long byteOffset, optional boolean littleEndian);
[RaisesException] double getFloat64(unsigned long byteOffset, optional boolean littleEndian);
@@ -51,6 +50,6 @@
[RaisesException] void setUint16(unsigned long byteOffset, unsigned short value, optional boolean littleEndian);
[RaisesException] void setInt32(unsigned long byteOffset, long value, optional boolean littleEndian);
[RaisesException] void setUint32(unsigned long byteOffset, unsigned long value, optional boolean littleEndian);
- [RaisesException] void setFloat32(unsigned long byteOffset, float value, optional boolean littleEndian);
- [RaisesException] void setFloat64(unsigned long byteOffset, double value, optional boolean littleEndian);
+ [RaisesException] void setFloat32(unsigned long byteOffset, unrestricted float value, optional boolean littleEndian);
+ [RaisesException] void setFloat64(unsigned long byteOffset, unrestricted double value, optional boolean littleEndian);
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698