diff options
author | Michael Wu <mwu@mozilla.com> | 2015-09-23 16:53:03 -0400 |
---|---|---|
committer | Michael Wu <mwu@mozilla.com> | 2015-10-14 15:30:52 -0400 |
commit | e733a7c46a5d14a1be219e76136cdcb2d678d33a (patch) | |
tree | 7a50317a6cfa109eb3a7049add9ad87597dac55e /components/script/dom/bindings/structuredclone.rs | |
parent | 32daa17d5cbcad02db0713e21e52410cdc60480e (diff) | |
download | servo-e733a7c46a5d14a1be219e76136cdcb2d678d33a.tar.gz servo-e733a7c46a5d14a1be219e76136cdcb2d678d33a.zip |
Support the updated spidermonkey bindings
Diffstat (limited to 'components/script/dom/bindings/structuredclone.rs')
-rw-r--r-- | components/script/dom/bindings/structuredclone.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/structuredclone.rs b/components/script/dom/bindings/structuredclone.rs index 68757f5ed29..dcdfbea965d 100644 --- a/components/script/dom/bindings/structuredclone.rs +++ b/components/script/dom/bindings/structuredclone.rs @@ -31,7 +31,7 @@ impl StructuredCloneData { ptr::null(), ptr::null_mut(), HandleValue::undefined()) }; - if result == 0 { + if !result { unsafe { JS_ClearPendingException(cx); } return Err(Error::DataClone); } @@ -49,7 +49,7 @@ impl StructuredCloneData { assert!(JS_ReadStructuredClone( global.get_cx(), self.data, self.nbytes, JS_STRUCTURED_CLONE_VERSION, rval, - ptr::null(), ptr::null_mut()) != 0); + ptr::null(), ptr::null_mut())); } } } |