Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIntroduce feature to only allow initialization once. #447
Conversation
|
@bors-servo r+ |
|
|
Introduce feature to only allow initialization once. See #22039 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/447) <!-- Reviewable:end -->
|
(Just help to reference the issue correctly) |
| @@ -2,7 +2,7 @@ | |||
| name = "mozjs" | |||
| description = "Rust bindings to the Mozilla SpiderMonkey JavaScript engine." | |||
| repository = "https://github.com/servo/rust-mozjs" | |||
| version = "0.9.3" | |||
| version = "0.9.4" | |||
This comment has been minimized.
This comment has been minimized.
CYBAI
Nov 14, 2018
Contributor
|
|
|
Hmm, @paulrouget can you see 9d5d8a9 in the PR? Btw, |
|
Can't see the commit here: https://github.com/servo/rust-mozjs/commits/master/Cargo.toml but I see it here: https://github.com/servo/rust-mozjs/commits/master Anyway. Gonna bump to 0.9.5 and publish. |
|
Why not use |
|
Cc @asajeffrey, who reverted most of 066b4ab when he updated to SM 60 in #430. |
|
From SpiderMonkey's own documentation:
|
|
It is specific to the way that we're using Servo inside Firefox Reality. The feature simply prevents us from calling shut down; it doesn't actually change how many times we initialize the library. |
|
Hmm, might be worth finding another name for the feature? It seems to be more about shutdown than init, perhaps |
|
I have an open pull request that removes it entirely. |
paulrouget commentedNov 14, 2018
•
edited by larsbergstrom
See #22039
This change is