aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/file.rs
diff options
context:
space:
mode:
authorMatt McCoy <mattnenterprise@yahoo.com>2015-01-07 18:42:06 -0500
committerMatt McCoy <matt.mccoy@threewide.com>2015-01-07 18:52:41 -0500
commit85df7f0d6f4f66ad64130ecb09225bb94377737d (patch)
treea91a97b7fffcabdde988e7664dcd7da093fe7c31 /components/script/dom/file.rs
parentcf616b90a236f88058dbad74b568b4d4379d2829 (diff)
downloadservo-85df7f0d6f4f66ad64130ecb09225bb94377737d.tar.gz
servo-85df7f0d6f4f66ad64130ecb09225bb94377737d.zip
Fixes #4164 Make Constructor and new functions take GlobalRef by value
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r--components/script/dom/file.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs
index ce0a4b766b1..3acedb43265 100644
--- a/components/script/dom/file.rs
+++ b/components/script/dom/file.rs
@@ -21,7 +21,7 @@ impl File {
_file_bits: JSRef<Blob>, name: DOMString) -> File {
File {
//TODO: get type from the underlying filesystem instead of "".to_string()
- blob: Blob::new_inherited(global, type_, None, ""),
+ blob: Blob::new_inherited(*global, type_, None, ""),
name: name,
}
// XXXManishearth Once Blob is able to store data