Questions tagged [es5-shim]

Support for ECMAScript5 (ES5) on older browsers (mainly pre IE9). The ES5 specification was published in 2009.

Support for ECMAScript5 (ES5) on older browsers (mainly pre IE9). The ES5 specification was published in 2009.

Compatibility table https://kangax.github.io/compat-table/es5/

56 questions
0
votes
1 answer

How to include es5-shim in browserify bundle

Should I do something like the following in my entry point: var es5Shim = require('es5-shim'); That gets included properly in the bundle but it just seems like there has to be a better way and I'm missing it.
user2874851
0
votes
1 answer

ng-repeat fails on ie-8 despite es5-shim

I have an angular model page that has an array images. In my template I have this:
and I have tried to have es5-shim.js imported in all orders of precedence that can be. All…
0
votes
1 answer

Breeze - Metadata helper in IE8

I have a problem in IE8 with Breeze using breeze.metadata-helper.js. I already included es5-shim and sham libraries. It fails in: makePropDescription(proto, property) method, while trying to execute: Object.defineProperty(proto, propName,…
0
votes
1 answer

AngularJS Decorator without object.defineProperty

How do I use decorators without having access to object.defineProperty? I am looking into the shims available: es5-sham polyfill but in case those don't pass testing, is there another way decorators were intended to work? I am using the decorator…
km6zla
  • 4,787
  • 2
  • 29
  • 51
0
votes
1 answer

Object.getPrototypeOf fail to __proto__ fail to object.constructor.prototype shims

I have been looking through some shim/polyfill libraries and see that some of them have a shim for Object.getPrototypeOf. On fail to exist they fall through to using __proto__ and if that doesn't exist then to object.constructor.prototype. I…
Xotic750
  • 22,914
  • 8
  • 57
  • 79
0
votes
1 answer

How to set default value with an accessor value in Object.defineProperties?

I want to be able to set new name upon instanciation of a new object. But somehow I got an infinite loop to be happening. I dont know how to fix it. function Human(opt) { this.name = opt.name; //this causes ranger error or infinite…
einstein
  • 13,389
  • 27
  • 80
  • 110
-1
votes
2 answers

angular8 es5 son call parent method call this.method is undefined

export class SonComponent extends ParentComponent { public say() { console.info('hello!my parent is ' + super.getName()); } } export class ParentComponent { public getName() { return this.getFirstName() + this.getLastName(); // <---…
HelloWorld
  • 147
  • 1
  • 1
  • 14
-1
votes
1 answer

Using Angular ES5 to create filters

I've created a project using Angular v 4.4.4 in ES5 and I'm having difficulties making a pipe filter to filter table results (*ngFor is used to populate the table). Ive searched all over and was not able to find an example. is this possible to do…
D.Asare
  • 103
  • 3
  • 14
-1
votes
1 answer

Understanding ie8fix & es5-shim

I'm having a hard time trying to understand what exactly es5-shim and ie8fix do. Can anyone explain them in simple language please? (Do not only quote from wikipedia and other sources!!)
Soli
  • 842
  • 2
  • 11
  • 24
-2
votes
1 answer

Javascript ES6 to ES5 conversion

I have this ES6 code: var occupationJson = { "Occupation": [{ "value": "Engineer", "startDate": "2016-01-01", "endDate": "2016-01-31" }, { "value": "Manager", "startDate": "2016-02-01", "endDate":…
-6
votes
1 answer

What the symbol => indicates in Type script as well as ES6

In typescript as well as in ES6 why we are using =>, when we need to use this one actually.how it makes differ from older version of javascript.
Shamil
  • 727
  • 1
  • 9
  • 17
1 2 3
4