Commit 6c3647c3 authored by cjihrig's avatar cjihrig
Browse files

console: allow Object.prototype fields as labels

Console.prototype.timeEnd() returns NaN if the timer label
corresponds to a property on Object.prototype. This commit
uses Object.create(null) to construct the _times object.

Fixes: https://github.com/joyent/node/issues/9069
PR-URL: https://github.com/joyent/node/pull/9116


Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
parent b8604fa4
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment