console: use consolePropAttributes for k-bind properties in constructor · nodejs/node@ed5e69d (original) (raw)

`@@ -181,15 +181,13 @@ Console.prototype[kBindProperties] = function(ignoreErrors, colorMode) {

`

181

181

` ...consolePropAttributes,

`

182

182

`value: Boolean(ignoreErrors)

`

183

183

`},

`

184

``

`-

'_times': { ...consolePropAttributes, value: new Map() }

`

``

184

`+

'_times': { ...consolePropAttributes, value: new Map() },

`

``

185

`+

// Corresponds to https://console.spec.whatwg.org/#count-map

`

``

186

`+

[kCounts]: { ...consolePropAttributes, value: new Map() },

`

``

187

`+

[kColorMode]: { ...consolePropAttributes, value: colorMode },

`

``

188

`+

[kIsConsole]: { ...consolePropAttributes, value: true },

`

``

189

`+

[kGroupIndent]: { ...consolePropAttributes, value: '' }

`

185

190

`});

`

186

``

-

187

``

`-

// TODO(joyeecheung): use consolePropAttributes for these

`

188

``

`-

// Corresponds to https://console.spec.whatwg.org/#count-map

`

189

``

`-

this[kCounts] = new Map();

`

190

``

`-

this[kColorMode] = colorMode;

`

191

``

`-

this[kIsConsole] = true;

`

192

``

`-

this[kGroupIndent] = '';

`

193

191

`};

`

194

192

``

195

193

`` // Make a function that can serve as the callback passed to stream.write().

``