mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
984d7c1cf6
We're not using it for any other props passed to ReactJS components, so there's no reason to do it here. Props are immutable by convention. While it would be nice to enforce this, its too common to pass through function objects which aren't supported by IE's Object.freeze(). IE isn't following the spec on how to handle Object.freeze(function() {}). See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze#Notes > In ES6, a non-object argument will be treated as if it was a frozen ordinary object, simply return it. MS docs on https://msdn.microsoft.com/en-us/subscriptions/downloads/ff806186(v=vs.94).aspx > If the object argument is not an object, a TypeError exception is thrown. |
||
---|---|---|
.. | ||
dist | ||
lang | ||
src |