fix: code node garbled in Javascript (#4615)
This commit is contained in:
parent
11642192d1
commit
5893ebec55
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ class NodeJsTemplateTransformer(TemplateTransformer):
|
||||||
{cls._code_placeholder}
|
{cls._code_placeholder}
|
||||||
|
|
||||||
// decode and prepare input object
|
// decode and prepare input object
|
||||||
var inputs_obj = JSON.parse(atob('{cls._inputs_placeholder}'))
|
var inputs_obj = JSON.parse(Buffer.from('{cls._inputs_placeholder}', 'base64').toString('utf-8'))
|
||||||
|
|
||||||
// execute main function
|
// execute main function
|
||||||
var output_obj = main(inputs_obj)
|
var output_obj = main(inputs_obj)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue