DEV Community 👩‍💻👨‍💻

Ionel lupu
Ionel 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{
        this.object = object;

    get(target, property){

Top comments (0)

Let's team up together 🤝

We're Hiring

We're hiring for a Senior Full Stack Engineer to join the DEV team. Want the deets? Head here to learn more about who we're looking for.