Update for JS error message

This commit is contained in:
Joshua Granick
2015-05-07 08:59:25 -07:00
parent 979d5fd1e4
commit a28e267319

View File

@@ -24,11 +24,12 @@ package js;
private class HaxeError extends js.Error {
var val:Dynamic;
public function new(val:Dynamic) {
public function new(val:Dynamic) untyped {
super();
this.val = untyped __define_feature__("js.Boot.HaxeError", val);
untyped if (js.Error.captureStackTrace) js.Error.captureStackTrace(this, HaxeError);
this.val = __define_feature__("js.Boot.HaxeError", val);
this.message = String(val);
if (js.Error.captureStackTrace) js.Error.captureStackTrace(this, HaxeError);
}
}