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 upMishandled JS exceptions? #18535
Closed
Mishandled JS exceptions? #18535
Comments
|
Let me try to track this down this real quick... |
|
Err, got distracted, and I can't run rr from servo from where I am apparently... will investigate though |
|
So, in the first case, the generated code for unsafe extern fn defineProperty(cx: *mut JSContext, proxy: HandleObject, id: HandleId, desc: Handle<PropertyDescriptor>, opresult: *mut ObjectOpResult) -> bool {
return wrap_panic(panic::AssertUnwindSafe(|| {
if RUST_JSID_IS_STRING(id) {
// ...
} else {
return false;
}
}), false);
}Return false is used to signal when an exception has been thrown, otherwise aborts the execution of the script. So we need to throw something there or otherwise the execution stops. I suspect there are similar errors in the other examples, if not the same. Looking for those |
emilio
added a commit
to emilio/servo
that referenced
this issue
Sep 17, 2017
Fixes part of servo#18535
bors-servo
added a commit
that referenced
this issue
Sep 17, 2017
emilio
added a commit
to emilio/servo
that referenced
this issue
Sep 17, 2017
Fixes part of servo#18535
bors-servo
added a commit
that referenced
this issue
Sep 17, 2017
script: a couple DOM conversion fixes Fixes #18535 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18539) <!-- Reviewable:end -->
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this issue
Sep 18, 2017
…lio:dom-conversion-fixes); r=nox Fixes servo/servo#18535 Source-Repo: https://github.com/servo/servo Source-Revision: 6f97dd1c96dbe4389d818995e2b4965b87383b61 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 2d9f0bd9c9b57d1a5ad2c74a32bcca6f172b8595
eamsen
pushed a commit
to eamsen/gecko-dev
that referenced
this issue
Sep 18, 2017
…lio:dom-conversion-fixes); r=nox Fixes servo/servo#18535 Source-Repo: https://github.com/servo/servo Source-Revision: 6f97dd1c96dbe4389d818995e2b4965b87383b61
aethanyc
pushed a commit
to aethanyc/gecko-dev
that referenced
this issue
Sep 19, 2017
…lio:dom-conversion-fixes); r=nox Fixes servo/servo#18535 Source-Repo: https://github.com/servo/servo Source-Revision: 6f97dd1c96dbe4389d818995e2b4965b87383b61
JerryShih
pushed a commit
to JerryShih/gecko-dev
that referenced
this issue
Sep 19, 2017
…lio:dom-conversion-fixes); r=nox Fixes servo/servo#18535 Source-Repo: https://github.com/servo/servo Source-Revision: 6f97dd1c96dbe4389d818995e2b4965b87383b61
avadacatavra
added a commit
to avadacatavra/servo
that referenced
this issue
Oct 17, 2017
Fixes part of servo#18535
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified-and-comments-removed
that referenced
this issue
Oct 1, 2019
…lio:dom-conversion-fixes); r=nox Fixes servo/servo#18535 Source-Repo: https://github.com/servo/servo Source-Revision: 6f97dd1c96dbe4389d818995e2b4965b87383b61 UltraBlame original commit: bec354d845873082a5d2c00e23500262c2cc89e5
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-comments-removed
that referenced
this issue
Oct 2, 2019
…lio:dom-conversion-fixes); r=nox Fixes servo/servo#18535 Source-Repo: https://github.com/servo/servo Source-Revision: 6f97dd1c96dbe4389d818995e2b4965b87383b61 UltraBlame original commit: bec354d845873082a5d2c00e23500262c2cc89e5
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified
that referenced
this issue
Oct 2, 2019
…lio:dom-conversion-fixes); r=nox Fixes servo/servo#18535 Source-Repo: https://github.com/servo/servo Source-Revision: 6f97dd1c96dbe4389d818995e2b4965b87383b61 UltraBlame original commit: bec354d845873082a5d2c00e23500262c2cc89e5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Emilio told me on IRC to report these.
This behavior, aka JS halting happens even with --debug-mozjs and --with-debug-assertions.
To demonstrate this:
Note that only "before" is printed. The execution stops, not even an exception was thrown.
In place of the commented line you can also try any of: