|
@@ -34,7 +34,7 @@ private class HaxeError extends js.Error {
|
|
|
if (js.Error.captureStackTrace) js.Error.captureStackTrace(this, HaxeError);
|
|
|
}
|
|
|
|
|
|
- public static function wrap(val:Dynamic):Dynamic untyped {
|
|
|
+ public static function wrap(val:Dynamic):Dynamic {
|
|
|
return if (js.Syntax.instanceof(val, js.Error)) val else new HaxeError(val);
|
|
|
}
|
|
|
}
|