mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
feat(workers): "crypto" global accessible in Worker scope (#5121)
This commit is contained in:
parent
c0e8bae498
commit
a08a4abac1
6 changed files with 43 additions and 24 deletions
|
@ -6,6 +6,7 @@ import * as abortController from "./web/abort_controller.ts";
|
|||
import * as abortSignal from "./web/abort_signal.ts";
|
||||
import * as blob from "./web/blob.ts";
|
||||
import * as consoleTypes from "./web/console.ts";
|
||||
import * as csprng from "./ops/get_random_values.ts";
|
||||
import * as promiseTypes from "./web/promise.ts";
|
||||
import * as customEvent from "./web/custom_event.ts";
|
||||
import * as domException from "./web/dom_exception.ts";
|
||||
|
@ -222,6 +223,7 @@ export const windowOrWorkerGlobalScopeProperties = {
|
|||
queuingStrategy.ByteLengthQueuingStrategyImpl
|
||||
),
|
||||
CountQueuingStrategy: nonEnumerable(queuingStrategy.CountQueuingStrategyImpl),
|
||||
crypto: readOnly(csprng),
|
||||
File: nonEnumerable(domFile.DomFileImpl),
|
||||
CustomEvent: nonEnumerable(customEvent.CustomEventImpl),
|
||||
DOMException: nonEnumerable(domException.DOMExceptionImpl),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue