summaryrefslogtreecommitdiff
path: root/core/isolate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/isolate.rs')
-rw-r--r--core/isolate.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/isolate.rs b/core/isolate.rs
index cb4bdaaf4..9efe86c0e 100644
--- a/core/isolate.rs
+++ b/core/isolate.rs
@@ -1113,6 +1113,20 @@ pub mod tests {
}
#[test]
+ fn test_encode_decode() {
+ run_in_task(|mut cx| {
+ let (mut isolate, _dispatch_count) = setup(Mode::Async);
+ js_check(isolate.execute(
+ "encode_decode_test.js",
+ include_str!("encode_decode_test.js"),
+ ));
+ if let Poll::Ready(Err(_)) = isolate.poll_unpin(&mut cx) {
+ unreachable!();
+ }
+ });
+ }
+
+ #[test]
fn will_snapshot() {
let snapshot = {
let mut isolate = Isolate::new(StartupData::None, true);