dont try to freeze ArrayBuffers (#74)
This commit is contained in:
parent
edacd4b839
commit
eaeb5985ac
@ -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'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user