Skip to content

Ensure process object exists for deprecation warn#207

Merged
isaacs merged 1 commit intoisaacs:mainfrom
tavogel:patch-1
Mar 9, 2022
Merged

Ensure process object exists for deprecation warn#207
isaacs merged 1 commit intoisaacs:mainfrom
tavogel:patch-1

Conversation

@tavogel
Copy link
Copy Markdown
Contributor

@tavogel tavogel commented Mar 8, 2022

Attempt to fix #206

Comment thread index.js Outdated
@isaacs
Copy link
Copy Markdown
Owner

isaacs commented Mar 8, 2022

Looks good, just needs a test. You can take a look at one of the deprecation tests, and just add something like:

t.test('does not do deprecation warning without process object', t => {
  const proc = process
  t.teardown(() => global.process = proc)
  global.process = null
  // do something that triggers a deprecation, ensure nothing was logged
  t.end()
})

@tavogel tavogel requested a review from isaacs March 8, 2022 19:52
@isaacs isaacs merged commit 17dbfee into isaacs:main Mar 9, 2022
@tavogel tavogel deleted the patch-1 branch March 9, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecation checks in v7 break browser compatability

2 participants