Commit Graph

1 Commits

Author SHA1 Message Date
James M Snell
4151ab398b util: add createClassWrapper to internal/util
Utility function for wrapping an ES6 class with a constructor
function that does not require the new keyword

PR-URL: https://github.com/nodejs/node/pull/11391
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
2017-02-17 10:37:32 -08:00