mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Pass Option<T> for optional primitive arguments without a default value (fixes #1813).
This commit is contained in:
parent
a6100563a6
commit
59bcabb75e
4 changed files with 51 additions and 56 deletions
|
@ -43,7 +43,7 @@ impl Blob {
|
|||
~""
|
||||
}
|
||||
|
||||
pub fn Slice(&self, _start: i64, _end: i64, _contentType: Option<DOMString>) -> JS<Blob> {
|
||||
pub fn Slice(&self, _start: Option<i64>, _end: Option<i64>, _contentType: Option<DOMString>) -> JS<Blob> {
|
||||
Blob::new(&self.window)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue