mozilla-spidermonkey / spidermonkey-embedding-examples

Documentation and examples for embedding the SpiderMonkey JavaScript / WebAssembly engine in their applications.
Other
197 stars 34 forks source link

examples: Add resolve example #17

Closed ptomato closed 5 years ago

ptomato commented 5 years ago

This example demonstrates how to use the resolve hook in JSClassOps to implement lazy property resolution.

Closes #10.

tynopex commented 5 years ago

I've rebased the example on the boilerplate patch and added a commit to use the boilerplate code. I'm going to add another patch with some cleanup to take a look it.

ptomato commented 5 years ago

Discussed on IRC that no-one remembers what the other patch was, so let's merge this now.