Use JS_GetScriptPrivate to get a mutated return value

Because MSVC uses a different calling conventions for functions that
return non-POD values, we need to use the new exposed wrapper function
so that `GetScriptPrivate` can be handled correctly on Windows.
This commit is contained in:
CYBAI 2020-07-19 16:24:24 +09:00
parent 08723b0e37
commit 419cd53561
2 changed files with 7 additions and 4 deletions

2
Cargo.lock generated
View file

@ -3572,7 +3572,7 @@ dependencies = [
[[package]]
name = "mozjs"
version = "0.13.0"
source = "git+https://github.com/servo/rust-mozjs#0caf5549cddbb34ad16abf35fb6bfbff824a4d14"
source = "git+https://github.com/servo/rust-mozjs#716dede8811ed525d9aab1e44cea392609b35d0a"
dependencies = [
"cc",
"lazy_static",