You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Number: 1]
1 // it's a number
1
1
number // it's a number
number
number
true
true
function Number() { [native code] }
function Number() { [native code] }
Output of babel-node 1.js (the same for require('babel/register'))
[Number: 1]
[Number: 1] // it shouldn't be an object
1
1
object // it shouldn't be an object
number
number
true
true
function Number() { [native code] }
function Number() { [native code] }
The text was updated successfully, but these errors were encountered:
Heh. Problem in constructor detection here. In your strange case this instanceof Number, like in new Number. Need add slow classof Object#toString.call check =\ As I say, please, open issue in core-js repo and it will be fixed in next release.
Babel somehow changes Number constructor behavior. It breaks number comparison in Chai.js assertion library.
Example code:
1.js
Output of
node 1.js
Output of
babel-node 1.js
(the same for require('babel/register'))The text was updated successfully, but these errors were encountered: