This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await server.register(plugin, registrationOptions); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server.register(plugin, registrationOptions, (err) => { | |
if (err) { | |
console.log('Plugin registration error. Deal with it.'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// Observed in Node v4.5.0 and v5.0.0 | |
// Does not appear to affect Node versions >= 6.x | |
const Thing = function(input) { | |
this.value = input; | |
Object.defineProperty(this, 'nonEnum', {value: 'this should not serialize'}); | |
}; | |
Thing.prototype.nonEnum = 'Overwrite the nonEnum to trigger the bug'; |
NewerOlder