Skip to content

Commit

Permalink
Merge pull request #9 from raido/fix-name-descriptor-ie11
Browse files Browse the repository at this point in the history
IE11 does not have Function.name defined
  • Loading branch information
pzuraq authored Apr 7, 2019
2 parents cf1e33b + ba642b3 commit 0b165bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/ember-decorators-polyfill/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 0b165bf

Please sign in to comment.