File
Blob: src/workerd/server/tests/extensions/module.js
| 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 | |
| 5 | import secret from 'test-internal:internal-module'; |
| 6 | |
| 7 | export function openDoor(key) { |
| 8 | if (key != secret.caveKey) throw new Error('Wrong key: ' + key); |
| 9 | return true; |
| 10 | } |