loading...

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

ionellupu profile image Ionel lupu ・1 min read

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

Discussion

pic
Editor guide