From ba642b3fd0a223f2fa69fa8387428742ba3df01f Mon Sep 17 00:00:00 2001 From: Raido Kuli Date: Sun, 7 Apr 2019 19:23:47 +0300 Subject: [PATCH] IE11 does not have Function.name defined This means Object.getOwnPropertyDescriptor() will return undefined. --- vendor/ember-decorators-polyfill/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/ember-decorators-polyfill/index.js b/vendor/ember-decorators-polyfill/index.js index 6e39c90..3201711 100644 --- a/vendor/ember-decorators-polyfill/index.js +++ b/vendor/ember-decorators-polyfill/index.js @@ -275,7 +275,7 @@ import { let desc = Object.getOwnPropertyDescriptor(decorator, 'name'); // Pre ES2015 non standard implementation, "Function.name" is non configurable field // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name - if (desc.configurable) { + if (desc && desc.configurable) { Object.defineProperty(decorator, 'name', { value: fnName, });