Ben, yes, unfortunately the SetAccessor method doesn't allow intercepting the setting of any arbitrary member (property or function) on the function.
On Tuesday, March 3, 2020 at 11:21:00 PM UTC+2, Ben Noordhuis wrote: > > On Tue, Mar 3, 2020 at 1:20 PM Darin Dimitrov <darin....@gmail.com > <javascript:>> wrote: > > > > I tried every possible method but cannot intercept setting members on a > Local<Function> instance. Also couldn't find any example in the > https://chromium.googlesource.com/v8/v8/+/refs/heads/lkgr/test/cctest/test-api-interceptors.cc > > > > > Is this simply not possible? > > I think for Function objects, you can't do better than SetAccessor(), > but that only lets you intercept a single predetermined named property > and I infer you want to intercept them all. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/979d3f37-a5e1-4841-b013-5fcb425c240c%40googlegroups.com.