Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haxe 3.2 and html5 target doesn't build #378

Closed
ibilon opened this issue Mar 22, 2015 · 6 comments
Closed

Haxe 3.2 and html5 target doesn't build #378

ibilon opened this issue Mar 22, 2015 · 6 comments

Comments

@ibilon
Copy link
Member

ibilon commented Mar 22, 2015

lime test html5 -debug
Not_found

See HaxeFoundation/haxe#4067

Apparently it's a problem with the custom version of js/Boot.hx

@ibilon
Copy link
Member Author

ibilon commented Mar 22, 2015

diff haxe.txt lime.txt 
24,35d23
< private class HaxeError extends js.Error {
< 
<       var val:Dynamic;
< 
<       public function new(val:Dynamic) {
<               super();
<               this.val = untyped __define_feature__("js.Boot.HaxeError", val);
<               untyped if (js.Error.captureStackTrace) js.Error.captureStackTrace(this, HaxeError);
<       }
< }
< 
< @:dox(hide)
82c70
<       static function getClass(o:Dynamic) : Dynamic {
---
>       static inline function getClass(o:Dynamic) : Dynamic {
96c84
<       @:ifFeature("has_enum")
---
>       @:ifFeature("may_print_enum")

@ibilon
Copy link
Member Author

ibilon commented Mar 22, 2015

Changing the file to match haxe's resolve the issue.

@Simn
Copy link

Simn commented Mar 22, 2015

What exactly was "patched" here anyway, and why?

@ibilon
Copy link
Member Author

ibilon commented Mar 22, 2015

@Simn I tried a diff with this version (https://github.com/HaxeFoundation/haxe/blob/34849d14e9941714e228ed3a638af58a17c43d9d/std/js/Boot.hx), considering the dates it must be the one joshua used. There's no differences.

The commit message says "Include patched (dev branch) Haxe Boot class, to fix Safari issue", so that's the why.

@Simn
Copy link

Simn commented Mar 22, 2015

But what exactly was fixed there? From what I can tell it only added inline to getClass.

@jgranick
Copy link
Member

The old js.Boot failed on "Std.is" for things that were not Haxe types (things like Std.is (object, js.html.Image); failed)

Now that Haxe 3.2 is being released, we can either do away with the modified file, or we can likely use the 3.2 version as a patch for 3.1 users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants