mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
398 B
18 lines
398 B
9 years ago
|
var nativeCreate = require('./_nativeCreate');
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/**
|
||
|
* Creates an hash object.
|
||
|
*
|
||
|
* @private
|
||
|
* @returns {Object} Returns the new hash object.
|
||
|
*/
|
||
|
function Hash() {}
|
||
|
|
||
|
// Avoid inheriting from `Object.prototype` when possible.
|
||
|
Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
|
||
|
|
||
|
module.exports = Hash;
|