diff options
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r-- | components/script/dom/file.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs index 1bfd12a2654..e80c92cf83b 100644 --- a/components/script/dom/file.rs +++ b/components/script/dom/file.rs @@ -45,7 +45,7 @@ impl File { #[allow(unrooted_must_root)] pub fn new(global: &GlobalScope, blob_impl: BlobImpl, name: DOMString, modified: Option<i64>, typeString: &str) -> DomRoot<File> { - reflect_dom_object(box File::new_inherited(blob_impl, name, modified, typeString), + reflect_dom_object(Box::new(File::new_inherited(blob_impl, name, modified, typeString)), global, FileBinding::Wrap) } |