Unverified Commit 6fb27af7 authored by Shadowbeetle's avatar Shadowbeetle Committed by Andreas Madsen
Browse files

async_hooks: add constructor check to async-hooks

This fixes the async_hooks.AsyncHook constructor such that it throws an
error when provided with falsy values other than undefined.

PR-URL: https://github.com/nodejs/node/pull/13096


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarRefael Ackermann <refack@gmail.com>
Reviewed-By: default avatarAndreas Madsen <amwebdk@gmail.com>
parent ef718247
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment