callbacks... events, even.

This commit is contained in:
Yoshman29
2022-10-09 14:47:42 +02:00
parent 44a5f4b1be
commit aa46bc3335
5 changed files with 50 additions and 2 deletions
+1 -1
View File
@@ -16,12 +16,12 @@ class HScript extends Script {
var code:String = Assets.getText(path);
var parser = new hscript.Parser();
parser.allowJSON = parser.allowMetadata = parser.allowTypes = true;
// interp.errorHandler = _errorHandler;
try {
expr = parser.parseString(code, fileName);
} catch(e) {
return;
}
interp.errorHandler = _errorHandler;
}
private function _errorHandler(error:Error) {