Sfoglia il codice sorgente

[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 anni fa
parent
commit
69dcfc4ae0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);
 	}
 
-	static var __toStr = untyped __js__("{}.toString");
+	static var __toStr = untyped ({}).toString;
 	// get native JS [[Class]]
 	static function __nativeClassName(o:Dynamic):String {
 		var name = untyped __toStr.call(o).slice(8, -1);