Bug 1583251 - P6 - Apply the change to sc.rs; r=sfink
authorTom Tung <ttung@mozilla.com>
Wed, 23 Oct 2019 07:21:05 +0000
changeset 498679 058946a415aa57838bbd953d082bae9801d4474e
parent 498678 6145f7c31786ebb18ebd6af87c5197a4c697d5ac
child 498680 8d16e7a647e8259da52ca6f35cceceb8f7e3ec66
push id98599
push userttung@mozilla.com
push dateWed, 23 Oct 2019 07:22:53 +0000
treeherderautoland@058946a415aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1583251
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1583251 - P6 - Apply the change to sc.rs; r=sfink Differential Revision: https://phabricator.services.mozilla.com/D49755
js/rust/src/sc.rs
--- a/js/rust/src/sc.rs
+++ b/js/rust/src/sc.rs
@@ -52,17 +52,17 @@ impl StructuredCloneBuffer {
     }
 
     /// Read a JS value out of this buffer.
     pub fn read(&mut self,
                 vp: jsapi::JS::MutableHandleValue,
                 callbacks: &jsapi::JSStructuredCloneCallbacks)
                 -> Result<(), ()> {
         if unsafe {
-            (*self.raw).read(Runtime::get(), vp, callbacks, ptr::null_mut())
+            (*self.raw).read(Runtime::get(), vp, jsapi::JS::CloneDataPolicy{ sharedArrayBuffer_: false }, callbacks, ptr::null_mut())
         } {
             Ok(())
         } else {
             Err(())
         }
     }
 
     /// Write a JS value into this buffer.