mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Auto merge of #6582 - servo:clamp-enforce-range, r=jdm
Add Clamp and EnforceRange support for webidl arguments. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6582) <!-- Reviewable:end -->
This commit is contained in:
commit
36d732a60a
6 changed files with 177 additions and 53 deletions
|
@ -16,12 +16,8 @@ interface Blob {
|
|||
|
||||
//slice Blob into byte-ranged chunks
|
||||
|
||||
//TODO: implement slice with [Clamp]
|
||||
//Blob slice([Clamp] optional long long start,
|
||||
// [Clamp] optional long long end,
|
||||
// optional DOMString contentType);
|
||||
Blob slice(optional long long start,
|
||||
optional long long end,
|
||||
Blob slice([Clamp] optional long long start,
|
||||
[Clamp] optional long long end,
|
||||
optional DOMString contentType);
|
||||
//void close();
|
||||
|
||||
|
|
|
@ -21,8 +21,7 @@ interface WebSocket : EventTarget {
|
|||
attribute EventHandler onclose;
|
||||
//readonly attribute DOMString extensions;
|
||||
//readonly attribute DOMString protocol;
|
||||
//[Throws] void close([Clamp] optional unsigned short code, optional USVString reason); //Clamp doesn't work
|
||||
[Throws] void close(optional unsigned short code, optional USVString reason); //No clamp version - works
|
||||
[Throws] void close([Clamp] optional unsigned short code, optional USVString reason);
|
||||
|
||||
//messaging
|
||||
//attribute EventHandler onmessage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue