Skip to content

Commit

Permalink
IE11 does not have Function.name defined
Browse files Browse the repository at this point in the history
This means Object.getOwnPropertyDescriptor() will return undefined.
  • Loading branch information
raido committed Apr 7, 2019
1 parent cf1e33b commit ba642b3
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 ba642b3

Please sign in to comment.