Pārlūkot izejas kodu

[js] remove unused `name` field from NativeException

so custom subclasses can define their own
Dan Korostelev 5 gadi atpakaļ
vecāks
revīzija
7a142a02ae
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  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')
 @:native('Error')
 private extern class NativeException {
 private extern class NativeException {
 	// private var message:String; //redefined in haxe.Exception
 	// private var message:String; //redefined in haxe.Exception
-	@:noCompletion private var name:String;
 	// private var stack(default, null):String; //redefined in haxe.Exception
 	// private var stack(default, null):String; //redefined in haxe.Exception
 
 
-	private function new(?message:String):Void;
-}
+	function new(?message:String);
+}