6.0.0
Now requires Node.js v6 and above, as we've started using Symbol.toStringTag
and new.target
.
"Class strings" are now generated using Symbol.toStringTag
, which makes them work with Object.prototype.toString.call(wrapper)
. We use Chrome's semantics here, instead of those in the Web IDL specification, due to ongoing debate; see this Bugzilla bug.
Constructors now use new.target
to check that they're being called with new
, instead of using instanceof
, taking care of some edge cases.
Interface inheritance now correctly does class-side inheritance as well.
Bare stringifiers, with no identifier, now work correctly, instead of causing an error.
Useless argument-conversion code is no longer generated for zero-argument operations and constructors.