test(code-runtime): type mutated array predicate
This commit is contained in:
1 parent
27fe26f8d2
commit
f3b42fd738
1 file changed
+1
-1
@@ -83,7 +83,7 @@ describe('jsonValueBytesUpTo', () => {
|
||||
let measured: number | undefined
|
||||
let prefix = ''
|
||||
try {
|
||||
Array.isArray = () => false
|
||||
Array.isArray = (_value: unknown): _value is never[] => false
|
||||
Array.prototype.pop = () => { throw new Error('mutated pop') }
|
||||
Array.prototype.push = () => { throw new Error('mutated push') }
|
||||
Buffer.byteLength = () => 0
|
||||
|
||||
Reference in new issue
Block a user