Browse Source

fix for js-unflatten unit tests

Dan Korostelev 10 years ago
parent
commit
9f163f4866
1 changed files with 7 additions and 2 deletions
  1. 7 2
      tests/unit/src/unit/issues/Issue4644.hx

+ 7 - 2
tests/unit/src/unit/issues/Issue4644.hx

@@ -8,10 +8,15 @@ class Issue4644 extends Test {
             "try {{
                 {0};
             }} catch (e) {{
-                {1} = (e instanceof js__$Boot_HaxeError);
+                {1} = (e instanceof {2});
             }}",
             throw (new js.Error() : Dynamic),
-            isHaxeError
+            isHaxeError,
+            #if js_unflatten
+            __js__("js._Boot.HaxeError")
+            #else
+            __js__("js__$Boot_HaxeError")
+            #end
         );
         f(isHaxeError);
         #end