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
This is a reopen of haxe issue HaxeFoundation/haxe#9780
Now I guess the problem is windows specific.
In the following code I tried to follow the problem. DateTools.format() calls the library function date_format which calls strftime. strftime should return 0 for an invalid format and date_format should then return a neko_error(). On linux this strftime ignores the wrong format so the code does not fail, but on windows this silently dies. I don't know whether strftime is the problem here or if all library code which returns neko_error() fails.
Same behaviour when I compile with Haxe 3.4 or 4.2beta. So it is not a regression.
classMain {
staticfunctionmain() {
vardate_format=neko.Lib.load("std", "date_format", 2);
tryuntyped {
varstring=date_format(Date.now().__t, "%d.%m.%y %Q".__s); // This line should return neko_error()trace("here"); // this line is never reached on windowstrace(__dollar__typeof(string));
trace("here");
if (__dollar__typeof(string) !=__dollar__tstring)
string=__dollar__string(string);
trace(string);
trace("here");
trace(__dollar__ssize(string));
} catch (e:Dynamic) {
trace(e); // not catched
}
trace('Hello World'); // no output on windows
}
}
The text was updated successfully, but these errors were encountered:
This is a reopen of haxe issue HaxeFoundation/haxe#9780
Now I guess the problem is windows specific.
In the following code I tried to follow the problem.
DateTools.format()
calls the library functiondate_format
which callsstrftime
.strftime
should return 0 for an invalid format anddate_format
should then return aneko_error()
. On linux thisstrftime
ignores the wrong format so the code does not fail, but on windows this silently dies. I don't know whetherstrftime
is the problem here or if all library code which returnsneko_error()
fails.Same behaviour when I compile with Haxe 3.4 or 4.2beta. So it is not a regression.
The text was updated successfully, but these errors were encountered: