From a42937402d5ee1dc9b2962ab52cfe0c5543efd20 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 21 Feb 2018 20:39:25 +0100 Subject: [PATCH] Fix IE 11 issue People might not have a polyfill for `includes()`. https://github.com/gaearon/react-proxy/blob/13f076b17b43a9d53c151931f3629ef1baae42e5/src/createClassProxy.js#L71 --- src/proxy/createClassProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy/createClassProxy.js b/src/proxy/createClassProxy.js index 21be5b79d..1b4f9dde7 100644 --- a/src/proxy/createClassProxy.js +++ b/src/proxy/createClassProxy.js @@ -108,7 +108,7 @@ function createClassProxy(InitialComponent, proxyKey, options) { const fakeBasePrototype = Base => Object.getOwnPropertyNames(Base) - .filter(key => !blackListedClassMembers.includes(key)) + .filter(key => blackListedClassMembers.indexOf(key) === -1) .filter(key => { const descriptor = Object.getOwnPropertyDescriptor(Base, key) return typeof descriptor.value === 'function'