Make sure that any syntax or Javascript runtime errors are reporter with correct file, line number and column in the dml file
When parsing a dml file syntax errors in the non JavaScript part are correctly found with line number by participle, it just has to be exporter in the error. However, if there is a error in the JavaScript part, this does not work. The JavaScript is not parsed by participle, but by goja, each function on its own. Hence gojas errors are always relative to that code snippet.
Goal should be to convert goja error information in a way that it is locatable in the dml file.
Make sure that any syntax or Javascript runtime errors are reporter with correct file, line number and column in the dml file
When parsing a dml file syntax errors in the non JavaScript part are correctly found with line number by participle, it just has to be exporter in the error. However, if there is a error in the JavaScript part, this does not work. The JavaScript is not parsed by participle, but by goja, each function on its own. Hence gojas errors are always relative to that code snippet.
Goal should be to convert goja error information in a way that it is locatable in the dml file.