test(code-runtime): type mutated array predicate

This commit is contained in:
Tianyi Cui
2026-07-23 03:11:53 +08:00
parent 27fe26f8d2
commit f3b42fd738

View File

@@ -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