Skip to content
File

Blob: src/workerd/server/tests/extensions/module.js

javascript11 lines
1// Copyright (c) 2023 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4 
5import secret from 'test-internal:internal-module';
6 
7export function openDoor(key) {
8 if (key != secret.caveKey) throw new Error('Wrong key: ' + key);
9 return true;
10}