Merge pull request #3240 from Ms2ger/mark-null

Avoid trying to trace a null JSVal; r=jdm
This commit is contained in:
Ms2ger 2014-09-08 00:06:24 +02:00
commit 2c0b66a782
2 changed files with 8 additions and 1 deletions

View file

@ -68,7 +68,7 @@ pub trait JSTraceable {
/// Trace a `JSVal`.
pub fn trace_jsval(tracer: *mut JSTracer, description: &str, val: JSVal) {
if !val.is_gcthing() {
if !val.is_markable() {
return;
}

View file

@ -0,0 +1,7 @@
<!-- crashtest -->
<script src=harness.js></script>
<script>
new CustomEvent("foo", { detail: null });
gc();
finish();
</script>