Panic when stringifying an primitive fails.

This should not happen.
This commit is contained in:
Ms2ger 2016-09-01 16:03:56 +02:00
parent ac111b96fd
commit 137845d47b

View file

@ -232,8 +232,7 @@ pub unsafe fn report_pending_exception(cx: *mut JSContext, dispatch_event: bool)
}
},
_ => {
error!("Uncaught exception: failed to stringify primitive");
return;
panic!("Uncaught exception: failed to stringify primitive");
},
}
};