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 upAllow evaluate_script to return values #258
Conversation
|
r? @nox or @jdm or @tschneidereit |
|
The last commit will require nontrivial changes in Servo, I think. I'd rather have it separate from the rest of these changes. |
|
I'm not actually sure why it is need here. @till? I'm happy to remove it from this PR. |
|
Sorry @till. I meant @tschneidereit. |
It's not required. We should do the required changes to Servo anyway because long-term contexts will go away (and their uses be replaced by |
|
I think only the first commit is needed. The second one makes sense, though, so we should keep it. |
|
@tschneidereit We only use one context. The commit in question is about requests. |
Hrm, sorry - it's been a while since I looked at all this and I misremembered stuff. What I really meant was that, AFAICT, there's no need to ever enter more than one request - or leave that request. We don't call Then again, it doesn't matter much at all whether we do or do not do this, so we can just ignore it. |
|
We should call into jsapi with null for perf reasons, iirc; this PR doesn't change that, though. |
|
Can we mark |
|
Not entirely relatedly: maybe we should make |
|
|
|
Rebased and dropped the last commit. Ready for rereview. |
|
@bors-servo: r+ |
|
|
Allow evaluate_script to return values This includes some other minor cleanups. This is a port of @tschneidereit's commits from this branch: https://github.com/tschneidereit/rust-mozjs/tree/update-bindings This is need to get https://github.com/tschneidereit/mozjs-shell working. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/258) <!-- Reviewable:end -->
|
|
|
@nox did you include this in your smup somehow? This hasn't landed but now mozjs-shell is working as expected, so I'm totally confused. |
|
oh, nm. github hadn't updated the page, and I was looking at stale data. |
metajack commentedApr 22, 2016
This includes some other minor cleanups. This is a port of @tschneidereit's commits from this branch:
https://github.com/tschneidereit/rust-mozjs/tree/update-bindings
This is need to get https://github.com/tschneidereit/mozjs-shell working.
This change is