vm; avoid error with non string codes
This commit is contained in:
parent
bf6719d2c9
commit
9917a024dd
1 changed files with 2 additions and 0 deletions
|
|
@ -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'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue