Joyee Cheung
|
efec14a7d1
|
assert: enforce type check in deepStrictEqual
Add checks for the built-in type tags to catch objects
with faked prototypes.
See https://tc39.github.io/ecma262/#sec-object.prototype.tostring
for a partial list of built-in tags.
Fixes: https://github.com/nodejs/node/issues/10258
PR-URL: https://github.com/nodejs/node/pull/10282
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
|
2017-03-12 17:07:13 +01:00 |
|