Skip to content Skip to sidebar Skip to footer

I Got The Expected Script1005: '(' With Javascript On Edge, With Chrome It's Working Fine, Why?

I resolve a problem which was showing up no compatibility on Edge but in Chrome. So, I changed using Object.assign(a, {}) instead of {...a, {}}. Here's where I discussed this prev

Solution 1:

To fix this is just about adding the parameter to deal with errors outputs into the catch statement. What this means is that Edge needs to know you are dealing with the error correctly.

So, I added:

catch (err){}

And everything worked!

Post a Comment for "I Got The Expected Script1005: '(' With Javascript On Edge, With Chrome It's Working Fine, Why?"