svaarala / duktape

Duktape - embeddable Javascript engine with a focus on portability and compact footprint
MIT License
5.92k stars 514 forks source link

Suggestion: error messages + remove text 'parser' #1349

Open denisdemaisbr opened 7 years ago

denisdemaisbr commented 7 years ago

1] enable/disable display error messages -- from parser/eval() -- others functions than uses i/o to print/return error

2] is possible turn off "clean text parser" ? -- only run bytecode

svaarala commented 7 years ago

I'm not sure what you mean by 1) -- could you elaborate a bit?

Point 2) amounts to disabling compilation (and eval, new Function()) support and only running functions loaded from bytecode. That should be relatively easy to do I think.