szatkus / js2me

J2ME implementation in JavaScript
MIT License
136 stars 29 forks source link

added a few stubs of classes #3

Closed nickdesaulniers closed 10 years ago

nickdesaulniers commented 10 years ago

Hey, I'm not sure that I'm doing this entirely correctly, but I figured I'd get the ball rolling with this PR. Seems like a lot of the existing class definitions are themselves mocked out?

szatkus commented 10 years ago

In earlier versions an app couldn't be launched if some of required classes didn't exist. I fixed it recently so now it's not necessary to mock classes, but thank you anyway.

If you want to implement some methods there's js2me.usedMethods object containing list of all methods which app uses. Of course writing tests afterwards is always good idea.

nickdesaulniers commented 10 years ago

Ok cool. Yeah, I see in a newer build that the error won't be printed to the screen. Via remote debugging I'm still seeing the errors in the console. I figure at runtime, I'll just start running into errors, hopefully not too many related to the loosely typed nature of JS. I should verify that all methods reported by js2me.usedMethods are implemented. Seems like this is a good resource for implementation details.