bahmutov / lazy-ass

Lazy node assertions without performance penalty
http://glebbahmutov.com/lazy-ass/
MIT License
69 stars 5 forks source link

[Bug] undefined is output as null #38

Closed downace closed 3 years ago

downace commented 6 years ago

lazy-ass v1.6.0

Reproduction

Using RunKit (also reproducible in browser, Chromium 68):

var lazyAss = require("lazy-ass");

var a = undefined,
    b = null;

lazyAss(a === b, a, '!==', b);

Expected Behavior

Output:

Error: undefined !== null

Actual Behavior

Output:

Error: null !== null
github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 2.0.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: