Repository navigation
Conversation
|
This should implement the spec for "An ECMAScript value V is converted to an IDL sequence value" at https://heycam.github.io/webidl/#es-sequence. SpiderMonkey has the explicit ForOfIterator(JSContext* cx) : cx_(cx), iterator(cx_), index(NOT_ARRAY) { }
static const uint32_t NOT_ARRAY = UINT32_MAX;See https://mxr.mozilla.org/mozilla-central/source/dom/bindings/Codegen.py?rev=151ce2b0e3f6#4514 for how Gecko calls it. |
Implement WebIDL sequence argument And use it for `WebGLRenderingContext#uniform1fv`. Blocked on servo/rust-mozjs#226 Fixes #544 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9056) <!-- Reviewable:end -->
|
Added a minimal test case, that works if we remove the So... it seems that the hidden state I don't think we can remove the Rooted destructor, so I don't think there's any way to circumvent this, at least for now. Would it be ok to leave the first commit for now to land servo/servo#9056 (so there's basic support for sequences and people can work on that kind of stuff), and leave this until we have a way to solve it using If that sounds good, I'll make sure the corresponding issues are filled (both in here and in servo/servo). I'd want to hear @jdm's opinion too. |
|
Also, pinging @michaelwu in case he knows any way to circumvent this issue. |
|
Ah, crap. @tschneidereit, do you have thoughts on this? Does the drop flag end up at the end or the start of the |
|
Alternatively, can't we opt out of the drop flag? |
|
|
|
I did a quick try moving the Also tested with |
|
#227 should fix that. |
|
☔ The latest upstream changes (presumably #229) made this pull request unmergeable. Please resolve the merge conflicts. |
This actually fails with a trap (at the assertion in `Rooted<T>::drop`).
It works this way, even though we can't do this :(
This actually works, even though it feels too hacky...
|
☔ The latest upstream changes (presumably #230) made this pull request unmergeable. Please resolve the merge conflicts. |
Implement WebIDL sequence arguments And use it for `WebGLRenderingContext#uniform1fv`. Blocked on servo/rust-mozjs#226 Fixes #544 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9056) <!-- Reviewable:end -->
…:sequence-args); r=nox And use it for `WebGLRenderingContext#uniform1fv`. Blocked on servo/rust-mozjs#226 Fixes #544 Source-Repo: https://github.com/servo/servo Source-Revision: c97d557720b2ef312b964534bd511d45161a2729 UltraBlame original commit: 7f9c2bb6cf2009b63f77e937263181f1799b6eb6
…:sequence-args); r=nox And use it for `WebGLRenderingContext#uniform1fv`. Blocked on servo/rust-mozjs#226 Fixes #544 Source-Repo: https://github.com/servo/servo Source-Revision: c97d557720b2ef312b964534bd511d45161a2729 UltraBlame original commit: 7f9c2bb6cf2009b63f77e937263181f1799b6eb6
…:sequence-args); r=nox And use it for `WebGLRenderingContext#uniform1fv`. Blocked on servo/rust-mozjs#226 Fixes #544 Source-Repo: https://github.com/servo/servo Source-Revision: c97d557720b2ef312b964534bd511d45161a2729 UltraBlame original commit: 7f9c2bb6cf2009b63f77e937263181f1799b6eb6
This will allow us to finally implement WebIDL sequence arguments
(servo/servo#544).