From b96d75d81704a9777e3fea371a8a2e4ef26db8fa Mon Sep 17 00:00:00 2001 From: Stijn de Witt Date: Mon, 3 Jul 2017 14:14:27 +0200 Subject: [PATCH] Remove deprecated stuff #16 --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 077f21d..5700084 100644 --- a/src/index.js +++ b/src/index.js @@ -42,7 +42,7 @@ function is(x, type) { while (c !== Object) { if (c === type || c === type.class) return true if (type.mixin && type.mixin.classes && type.mixin.classes.indexOf(c) !== -1) return true - c = c.prototype.__proto__.constructor + c = Object.getPrototypeOf(c.prototype).constructor } } return false