-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort out throwing errors from DOM bindings #347
Comments
The easiest path forward for now is to add some limited wrappers in rust-mozjs that call JS_ReportError with well-defined sets of parameters, according to our needs. |
@bfrohs This would be a really useful piece of work you could do. The generated bindings code is full of places where we just |
Sounds good. After I get my two current PRs finished up, I'll look into it more. Thanks for the suggestion! |
As of rust-lang/rust#2057 we can now write bindings for variadic functions! \o/ |
I wonder if #1542 is a duplicate of this issue - DOMException skeleton is now available. |
No, I'm pretty certain that DOMException interacts with error event handlers on the content side, whereas this issue revolves around fixing the places in generated code where we currently just return false without calling anything like JS_ReportError. |
There's still issues with |
Current status: we have |
I am currently working on this problem. |
I was going to do a pull request but found out that the code changed a little bit since last month. |
No, those changes look good to me. (Please do rebase and squash your branch before creating the PR.) |
Use assert_equals in document.body-setter-01.html.
There are lots of XXXs and commented out calls to js_GetErrorMessage in the generated code. We need to sort out what to do, with the end goal of throwing the right kind of error according the the relevant spec.
The text was updated successfully, but these errors were encountered: