From 9f9604e0c89a90941e31c3710864f8f8ba71e0f6 Mon Sep 17 00:00:00 2001 From: player-03 Date: Mon, 17 Apr 2023 14:23:29 -0400 Subject: [PATCH] Restore `untyped` keyword. I meant to move this to right before `__js__` because it's only needed in Haxe 3, but forgot. Also, I realized Lime always puts it before the `#if`, so I just put it back where it was. --- src/lime/_internal/backend/html5/HTML5HTTPRequest.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lime/_internal/backend/html5/HTML5HTTPRequest.hx b/src/lime/_internal/backend/html5/HTML5HTTPRequest.hx index d2cb080bc..a45d34c0d 100644 --- a/src/lime/_internal/backend/html5/HTML5HTTPRequest.hx +++ b/src/lime/_internal/backend/html5/HTML5HTTPRequest.hx @@ -444,7 +444,7 @@ class HTML5HTTPRequest private static function __loadImage(uri:String, promise:Promise, options:Int):Void { - var image:JSImage = #if haxe4 js.Syntax.code #else __js__ #end ('new window.Image ()'); + var image:JSImage = untyped #if haxe4 js.Syntax.code #else __js__ #end ('new window.Image ()'); if (!__isSameOrigin(uri)) {