As it turned out, pretty hard - while GML does look akin to JS, it spots substantial differences both in what is considered valid syntax and in actual workings. As a bonus, the official implementation is a big black box, meaning that any assumptions about inner workings would have to be either based on examining output code or be pure guesswork as such.
Having written numerous syntax parsers in past, I was able to mimic how GameMaker itself works very accurately - down to little-known quirks and seemingly-illegal constructs.
Having written numerous custom code transpilers and generators, I was able to make the program perform sufficient compile-time analysis and generate equivalent and fairly clean JS code for input GML.
Having worked with GameMaker's HTML5 target since it's introduction, I was able to make the generated code "link up" with a running GMS-HTML5 game, allowing it to use the built-in functions directly. And not only that, but I actually made the tool "patch up" multiple built-in functions which were not working like their non-web implementations.
The result is a web-based piece of software which a allows the user to write and run practically any GameMaker code right in the browser. While there are, of course, some limitations, it is considered very impressive, and is something that wasn't previously thought as be possible at all.
Overall, I was likely one of the few people that could have done something like this, and did the task well.