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
I think that should to be changed to arg.hasOwnProperty('toString') && typeof arg.toString === 'function', so that compatible with various running environments
The text was updated successfully, but these errors were encountered:
I'm running code in sandbox provided by vm2
Because of vm2 provide proteced object, so the code
arg.toString === Object.prototype.toString
will get falseclassnames/index.js
Line 32 in f2379c3
I think that should to be changed to
arg.hasOwnProperty('toString') && typeof arg.toString === 'function'
, so that compatible with various running environmentsThe text was updated successfully, but these errors were encountered: