vm; avoid error with non string codes

This commit is contained in:
jean-emmanuel 2022-01-14 21:25:24 +01:00
parent bf6719d2c9
commit 9917a024dd

View file

@ -91,6 +91,8 @@ class Vm {
compile(code, defaultContext) {
if (typeof code !== 'string') code = String(code)
// var contextInit = 'var locals = locals;',
var contextInit = '',
contextKeys = ['__VARS'],