That code has been used already to create a Diablo port for the Switch, but this time around, developer Rivsoft created a shareware version of the game that is playable inside a web browser.
From Bloody Disgusting:
Well, the same source code has been used again, this time by Rivsoft to allow you to play the original shareware version of Diablo[...]