Meteor 1.2 w/Ecmascript package and Object.assign


#1

Is there a way to tell the core ecmascript package to convert Object.assign to valid ES5 syntax? It’s causing an error in IE11, saying that Object has no method assign. I’ve replaced it with underscore.extend for now but it’d be nice to use the standard syntax

From the MSDN docs https://msdn.microsoft.com/en-us/library/dn858229(v=vs.94).aspx

Not supported in the following document modes: Quirks, Internet Explorer
6 standards, Internet Explorer 7 standards, Internet Explorer 8
standards, Internet Explorer 9 standards, Internet Explorer 10
standards, Internet Explorer 11 standards. Not supported in Windows 8.1.


#2

why not use _.assign?


#3

because I didn’t know it existed tbh haha, but in all reality it’s just an alias to _.extend so it doesn’t really matter. I’d much rather use the method that’s a native part of the language if possible though


#4

A Object.assign polyfill will be shipped in the next version of Meteor. You can already get the polyfill now by adding the xolvio:core-js package to your app. Also see: