ceifa / wasmoon

A real lua 5.4 VM with JS bindings made with webassembly
MIT License
462 stars 27 forks source link

Added JS proxy type #28

Closed timstableford closed 3 years ago

timstableford commented 3 years ago

This adds a proxy for JS objects based off of the one in demoon but converted to a type extension. It's optional but enabled by default.

Also modified the error type extension to use Error.toString for its __tostring method rather than using the message string.

See the two new tests for examples. Not sure if the type extension would be better suited to just sitting in demoon though.