From 725534c2db10cb7c283f6451ce59d226e1ff2411 Mon Sep 17 00:00:00 2001 From: James Cook Date: Wed, 4 Jan 2017 21:46:06 -0500 Subject: [PATCH] Added a third parameter to Reflect.construct() which was preventing the plugin from working with classes that extend HTMLElement --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 5e34095..3752b69 100644 --- a/src/index.js +++ b/src/index.js @@ -22,7 +22,7 @@ const buildHelper = template(` }, }); if (Object.setPrototypeOf){ - Object.setPrototypeOf(ExtendableBuiltin, cls); + Object.setPrototypeOf(ExtendableBuiltin, cls, this.constructor); } else { ExtendableBuiltin.__proto__ = cls; }