running node v18.15.0
if i have this code:
import {VM} from 'vm2'
const vm = new VM({
allowAsync: false,
wasm: false
})
let result = [1,2,3]
vm.freeze(result, 'data')
I expect that this will fail:
However, the array is changed and if I run it multiple times, I get 3, 2 then 1 as a result.