Skip to content
Myr

Fix property redefining

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent a8592e5 · Browse files · 2 files+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−0 removed

  • tests:+2 added−0 removed

2 files+2 added−0 removed

modified:test/async.test.js+1 added
modified:test/index.test.js+1 added
4 unmodified lines
5import * as node from '../index.js'67test.before(() => {8 Object.defineProperty(global, 'crypto', {9 configurable: true,10 value: {11 getRandomValues(array) {12 for (let i = 0; i < array.length; i++) {13 array[i] = Math.floor(Math.random() * 256)
185 unmodified lines