浏览代码

[js] remove unused `name` field from NativeException

so custom subclasses can define their own
Dan Korostelev 5 年之前
父节点
当前提交
7a142a02ae
共有 1 个文件被更改,包括 2 次插入3 次删除
  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);
+}