spheredev / neosphere

A lightweight game engine and development platform using JavaScript for game coding, based on the original Sphere engine by Chad Austin but with a redesigned, modern API and brand-new command-line development tools.
http://www.spheredev.org/
Other
108 stars 15 forks source link

TextEncoder, TextDecoder are undocumented #298

Open postcasio opened 5 years ago

postcasio commented 5 years ago

These classes are mentioned in the cellscript API docs, but the actual classes and methods they have are not documented anywhere.

fatcerberus commented 5 years ago

These are standard Web APIs and not specific to miniSphere so I considered them to be in the same category as other builtins like Date or Promise and didn’t document them.

https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder

I suppose we could include a link to MDN in the docs, though.

rhuanjl commented 5 years ago

There's a difference between the Web API and Javascript - these are in fact the only piece of the Web API that miniSphere implements - so I'd vote for documenting them.