Commit 3cbb5cdf 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 a Map to construct the _times object.

Fixes: https://github.com/joyent/node/issues/9069
PR-URL: https://github.com/iojs/io.js/pull/563


Reviewed-By: default avatarVladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
Reviewed-By: default avatarChris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: default avatarRod Vagg <rod@vagg.org>
parent 87e62bd4
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