I have setup my NodeJS session and performed the following test. I evaluate the following commands in ExternalLanguage cells.
test = 1+1
returns 2
test
returns 2
But when I try to get the value of the following builtin variable
global
Instead of returning its value, I get the following error
Failure["NodeJSError",<|
"FailureCode" -> "Error",
"MessageTemplate" -> "RangeError: Maximum call stack size exceeded",
"Traceback" -> "..."
|>]
Please help me fix this. Could be because the output is too large. Btw it works fine on the nodejs console.
Note: I am using NodeJS version 10.16.0 LTS and Mathematica version 12.0.0.
globalis a restricted variable inNodeJSand provides the same information asJavaScriptrunning in browser does for variablewindow. The problem is I want to get the value of this variable not assign something to it. Its value is a hugeJSONcontaining all the function and objects available in the current environment. But it is not coming out ofExternalEvaluatebecause of some call stack size issue. – user13892 Jun 17 '19 at 07:19