import execjs._runner_sources
node = execjs._runtimes.get('Node')
new_process_name = "new_process"
node._runner_source = "{} = process;\n".format(new_process_name) + \
execjs._runner_sources.Node.replace("process", new_process_name);
# v8
result = execjs.compile("process=undefined; function s1(){return 1}").call("s1")
print(result)
ojbk