From af1546391c4a561eb26ccf9cd244b05aed9b5bfc Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 22 May 2021 18:08:24 +0200 Subject: feat(extensions): BroadcastChannel WPT conformance Replaces the file-backed provider by an in-memory one because proper file locking is a hard problem that detracts from the proof of concept. Teach the WPT runner how to extract tests from .html files because all the relevant tests in test_util/wpt/webmessaging/broadcastchannel are inside basics.html and interface.html. --- runtime/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'runtime/build.rs') diff --git a/runtime/build.rs b/runtime/build.rs index 4fe89af3e..d228fffd6 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -52,7 +52,10 @@ fn create_runtime_snapshot(snapshot_path: &Path, files: Vec) { deno_crypto::init(None), deno_webgpu::init(false), deno_timers::init::(), - deno_broadcast_channel::init(), + deno_broadcast_channel::init( + deno_broadcast_channel::InMemoryBroadcastChannel::default(), + false, // No --unstable. + ), ]; let js_runtime = JsRuntime::new(RuntimeOptions { -- cgit v1.2.3