diff options
author | Josh Matthews <josh@joshmatthews.net> | 2015-01-28 01:10:24 +0000 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2015-01-28 01:13:32 +0000 |
commit | 7fec73a432bcc2148b8866051ecb11be8d311fe3 (patch) | |
tree | 2bb312c53b839df71b5f8115e91f90ea57d0620a /components/script/dom/bindings/error.rs | |
parent | 95fc29fa0db21959df99d81cdbb9561226321d2f (diff) | |
download | servo-7fec73a432bcc2148b8866051ecb11be8d311fe3.tar.gz servo-7fec73a432bcc2148b8866051ecb11be8d311fe3.zip |
Fix crash due to address significance for JSAPI things.
Diffstat (limited to 'components/script/dom/bindings/error.rs')
-rw-r--r-- | components/script/dom/bindings/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/error.rs b/components/script/dom/bindings/error.rs index 71ac1837afb..e6e62473a76 100644 --- a/components/script/dom/bindings/error.rs +++ b/components/script/dom/bindings/error.rs @@ -102,7 +102,7 @@ pub fn throw_not_in_union(cx: *mut JSContext, names: &'static str) -> JSBool { } /// Format string used to throw `TypeError`s. -const ERROR_FORMAT_STRING_STRING: [libc::c_char; 4] = [ +static ERROR_FORMAT_STRING_STRING: [libc::c_char; 4] = [ '{' as libc::c_char, '0' as libc::c_char, '}' as libc::c_char, @@ -110,7 +110,7 @@ const ERROR_FORMAT_STRING_STRING: [libc::c_char; 4] = [ ]; /// Format string struct used to throw `TypeError`s. -const ERROR_FORMAT_STRING: JSErrorFormatString = JSErrorFormatString { +static mut ERROR_FORMAT_STRING: JSErrorFormatString = JSErrorFormatString { format: &ERROR_FORMAT_STRING_STRING as *const libc::c_char, argCount: 1, exnType: JSEXN_TYPEERR as i16, |