Implementing an identical JSON.stringify

Claude Pache claude.pache at gmail.com
Sun Aug 5 02:28:10 UTC 2018



> Le 5 août 2018 à 04:14, Darien Valentine <valentinium at gmail.com> a écrit :
> 
> 
> However it is ultimately not possible to replicate because there is no possible brand test for [[BooleanData]].

Per spec, checking whether `Boolean.prototype.valueOf.call(obj)` throws will test whether an object has [[BooleanData]] internal slot.

—Claude



More information about the es-discuss mailing list