Skip to content

Commit 6cd578d

Browse files
committed
Fix property redefining
1 parent a8592e5 commit 6cd578d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/async.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as node from '../async/index.js'
77

88
test.before(() => {
99
Object.defineProperty(global, 'crypto', {
10+
configurable: true,
1011
value: {
1112
getRandomValues(array) {
1213
for (let i = 0; i < array.length; i++) {

test/index.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as node from '../index.js'
66

77
test.before(() => {
88
Object.defineProperty(global, 'crypto', {
9+
configurable: true,
910
value: {
1011
getRandomValues(array) {
1112
for (let i = 0; i < array.length; i++) {

0 commit comments

Comments
 (0)