Browse Source

[js] remove unused `name` field from NativeException

so custom subclasses can define their own
Dan Korostelev 5 years ago
parent
commit
7a142a02ae
1 changed files with 2 additions and 3 deletions
  1. 2 3
      std/js/_std/haxe/Exception.hx

+ 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);
+}