lib: define printErr() in script string
This commit moves the printErr()
function, used by the tick profiler processer, into the code string passed to vm.runInThisContext()
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines