소스 검색

[js] minor removal of __js__

The jQuery extern generator was unable to compile:
Called from js.Boot::$statics line 233
Uncaught exception - Invalid call

I cannot reduce it to a small example... But somehow this commit fixes that.
Andy Li 9 년 전
부모
커밋
69dcfc4ae0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      std/js/Boot.hx

+ 1 - 1
std/js/Boot.hx

@@ -230,7 +230,7 @@ class Boot {
 		else throw "Cannot cast " +Std.string(o) + " to " +Std.string(t);
 		else throw "Cannot cast " +Std.string(o) + " to " +Std.string(t);
 	}
 	}
 
 
-	static var __toStr = untyped __js__("{}.toString");
+	static var __toStr = untyped ({}).toString;
 	// get native JS [[Class]]
 	// get native JS [[Class]]
 	static function __nativeClassName(o:Dynamic):String {
 	static function __nativeClassName(o:Dynamic):String {
 		var name = untyped __toStr.call(o).slice(8, -1);
 		var name = untyped __toStr.call(o).slice(8, -1);