diff options
author | Oliver Lenehan <sunsetkookaburra+github@outlook.com.au> | 2020-05-08 22:30:53 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 14:30:53 +0200 |
commit | a08a4abac116eda498f8ad2df13b3816ec36c9ad (patch) | |
tree | 261a52fe93fc184f8af9aaf037cd74f27a532f76 /cli/js/globals.ts | |
parent | c0e8bae498b1892b994757b5f4972913c076a65e (diff) |
feat(workers): "crypto" global accessible in Worker scope (#5121)
Diffstat (limited to 'cli/js/globals.ts')
-rw-r--r-- | cli/js/globals.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/js/globals.ts b/cli/js/globals.ts index 5a04ec443..be327722c 100644 --- a/cli/js/globals.ts +++ b/cli/js/globals.ts @@ -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), |