I am embedding V8 and execute the following javascript:

class Parent {
}

class Child extends Parent {
}


Is there some API which would allow me to register an interceptor within 
the isolate which will get executed when registering such class? In this 
case the interceptor would receive the base class that we are extending.

Another use-case is with mixins:

let myMixin = superclass => class extends superclass {
    calc() {
    }
}

class Parent {
}

class Child extends myMixin(Parent) {
    calc() {
        ...
    }
}


Here I would like the interceptor to receive the base class that is being 
extended and the mixin (there could be more than one).

Is this possible with the public API in v8.h?

-- 
-- 
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/d6df5053-3ec2-46df-9d72-7a9dec2a6436%40googlegroups.com.

Reply via email to