summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index 05d76b4d5..9db1669cd 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -2039,6 +2039,22 @@ pub mod tests {
}
#[test]
+ fn test_serialize_deserialize() {
+ run_in_task(|mut cx| {
+ let (mut runtime, _dispatch_count) = setup(Mode::Async);
+ runtime
+ .execute(
+ "serialize_deserialize_test.js",
+ include_str!("serialize_deserialize_test.js"),
+ )
+ .unwrap();
+ if let Poll::Ready(Err(_)) = runtime.poll_event_loop(&mut cx) {
+ unreachable!();
+ }
+ });
+ }
+
+ #[test]
fn will_snapshot() {
let snapshot = {
let mut runtime = JsRuntime::new(RuntimeOptions {