2
0
Эх сурвалжийг харах

[js] remove unused `name` field from NativeException

so custom subclasses can define their own
Dan Korostelev 5 жил өмнө
parent
commit
7a142a02ae

+ 2 - 3
std/js/_std/haxe/Exception.hx

@@ -160,8 +160,7 @@ class Exception extends NativeException {
 @:native('Error')
 private extern class NativeException {
 	// private var message:String; //redefined in haxe.Exception
-	@:noCompletion private var name:String;
 	// private var stack(default, null):String; //redefined in haxe.Exception
 
-	private function new(?message:String):Void;
-}
+	function new(?message:String);
+}