dont try to freeze ArrayBuffers (#74)

This commit is contained in:
legomind 2018-02-19 21:01:31 -05:00 committed by Aaron Jensen
parent edacd4b839
commit eaeb5985ac

View File

@ -1,6 +1,7 @@
function isFreezable(object) {
if (object === null) return false
if (object instanceof RegExp) return false
if (object instanceof ArrayBuffer) return false
return Array.isArray(object) || typeof object === 'object'
}