From a28e2673196e6edf2f12688597e0737fc6da9f04 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 7 May 2015 08:59:25 -0700 Subject: [PATCH] Update for JS error message --- js/Boot.hx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/Boot.hx b/js/Boot.hx index 381fecd49..1db6fcb54 100644 --- a/js/Boot.hx +++ b/js/Boot.hx @@ -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); } }