You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i am trying to execute a file of javascript, i am getting following error as it is containing a class. for other files which only contains functions it is not giving any errors, only for the file with javascript class it is throwing exception.
here is the exception: {"SyntaxError: Expected an expression but found 'class' instead"}
and here is my code:
var scriptEngine = new ScriptEngine();
scriptEngine.EnableDebugging = true;
string console = "";
scriptEngine.ExecuteFile(@"SQLProJSQueryFormatter.js");
Anybody can help??
The text was updated successfully, but these errors were encountered:
It takes around 20ms to compile a small template and I thougt jurassic might be faster than a node service, but Just failed to get it transpile. Babel just doe not convert arrow functions.
Not exactly. I've only done stuff with compiling TypeScript.
The TypeScript compiler can handle arrow functions, but I'm not sure what it does if you give it a .js file instead of a .ts file as the input. However there is an --allowJs flag to let you do this, so maybe it would work?
When i am trying to execute a file of javascript, i am getting following error as it is containing a class. for other files which only contains functions it is not giving any errors, only for the file with javascript class it is throwing exception.
here is the exception: {"SyntaxError: Expected an expression but found 'class' instead"}
and here is my code:
Anybody can help??
The text was updated successfully, but these errors were encountered: