I'm encountering an issue with my Angular JS app. There is some code that counts the characters from an array, but for some reason it is causing the app to break and stop working in Safari and IE. I've tried to figure out what's wrong, but can't seem to identify the issue:
app.js
Object.defineProperty($scope, 'characters', {
get() {
return $scope.what.join('').length + $scope.why.join('').length;
}
});
Any idea why this code is causing problems in those two browsers?