As of ES6, Object.prototype.toString.call(specimen) is no longer a
reliable brand test. However,
https://esdiscuss.org/topic/tostringtag-spoofing-for-null-and-undefined#content-59
demonstrates another technique that is still reliable. For those
places containing old-style brand tests, either fix them or remove
them.

NEEDS_DUMMY_SETTER and ERRORS_HAVE_INVISIBLE_PROPERTIES were using
doing brand testing in their repairs. But since both of these were
repaired prior to 2014, I removed the repairs instead. The tests are
still in there, so we will still fail safe on ancient browsers that we
don't support, but may newly fail to repair them,

https://codereview.appspot.com/198470043/

--

--- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to