Skip to content

Instantly share code, notes, and snippets.

Last active February 23, 2017 15:38
What would you like to do?
function () {
runPreHooks(this, arguments);
let result;
try {
if ( {
result = Reflect.construct(fn, arguments,;
restult = fn.apply(this, arguments);
catch (err) {
runFaillingHooks(this, arguments, err);
throw err;
runPostHooks(this, arguments, result);
return result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment