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

Ionel Cristian Lupu @ionellupu

About: Author of Typetron. Passionate about web development. Typescript enthusiast.

Joined:
Sep 7, 2019

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

Publish Date: Sep 7 '19
7 0

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

Comments 0 total

    Add comment