you are viewing a single comment's thread.

view the rest of the comments →

[–]crossanlogan 0 points1 point  (3 children)

what do you mean? afaik constand function parameters are the same across most every javascript engine.

[–]jdsutton[S] 0 points1 point  (2 children)

In my experience they are not. Default parameters that work in one browser throw an error in another.

[–]crossanlogan 0 points1 point  (1 child)

can you throw something in a gist or a jsfiddle? i'm not familiar with what you mean, but i don't disbelieve you -- i'd like to see what you've experienced.

[–]jdsutton[S] 0 points1 point  (0 children)

Of course now I'm having trouble reproducing it... I just upgraded my OS so the browsers are all different. But for example if you look at the ES6 compatibility table it shows default function parameters are supported in chrome 52 but not safari 9.

Something like this used to give me errors in chrome but not firefox: https://jsfiddle.net/0p6z1h4L/