.import “wat.js” as WAT? or (THANK YOU, javascript)

So I’ve been playing with a Qt/QML application a little and wanted to import one js library in another.

So I wrote this:

 

which was replied by:

 

That’s all. I thought this couldn’t be difficult to fix but fuck this shit.

It took me long enough that I want to blog about it now.

At least I have the qtdeclarative code to see what it actually does.

The solution?

THERE’S A FUCKING SEMICOLON AT THE END AND THAT’S WRONG!!!

grumble This kind of shit happens when you make other shit optional and tack on some non-standard shit and… gah

But now there’s a blogpost on the internet with a solution :)