[quickjs-devel] questions on custom class

  • From: JM <jeevhi@xxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Tue, 11 Feb 2020 20:51:43 +0530

I managed to create a custom class for quick. However, I need some help:

1) how to prevent javascript from creating custom properties on my class

say,
myclassinstance.xys = "some value";

Can I prevent this?

2) if not possible, how to free these properties when the class instance
finalizes.

thanks

Other related posts: