Skip to content

Commit

Permalink
Fix property redefining
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Dec 8, 2022
1 parent a8592e5 commit 6cd578d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/async.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as node from '../async/index.js'

test.before(() => {
Object.defineProperty(global, 'crypto', {
configurable: true,
value: {
getRandomValues(array) {
for (let i = 0; i < array.length; i++) {
Expand Down
1 change: 1 addition & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as node from '../index.js'

test.before(() => {
Object.defineProperty(global, 'crypto', {
configurable: true,
value: {
getRandomValues(array) {
for (let i = 0; i < array.length; i++) {
Expand Down

0 comments on commit 6cd578d

Please sign in to comment.