DEV Community

Ionel Cristian Lupu
Ionel Cristian Lupu

Posted on

Problem: Calling static methods of target's parent when using a Javascript Proxy object

Really interesting problem here for Javascripters

In Javascript, is possible to intercept when getting a property using proxies.

Also, with a small hack as shown below, is possible to intercept when getting a static property of a class:

class Handler{
    constructor(object){
        this.object = object;
    }

    get(target, property){
        if

Top comments (0)