[quickjs-devel] Getter / Setter functions for an object

  • From: JM <jeevhi@xxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Fri, 7 Feb 2020 17:54:22 +0530

Hello

I would like to set getter and setter function for an object which will be
called for any arbitrary properties.

I am aware of JS_SetPropertyFunctionList and JS_CGETSET_DEF but they
require the name to be known. I need generic getter and setter which can be
invoked for any arbitrary property.

How do I do it?

Other related posts:

  • » [quickjs-devel] Getter / Setter functions for an object - JM