79151676

Date: 2024-11-02 22:20:15
Score: 1
Natty:
Report link

I massively improved the code of @Arch . It uses chrome debugger and requires an extension.

class HiddenClass {
  hiddenProperty;

  constructor(value) {
    this.hiddenProperty = value;
  }
}


var Secret = (() => {
  let _secret;
  return function Secret(secret) {
    _secret = secret;
  }
})();
let obj = new Secret(new HiddenClass(1337));
console.log(await scopeInspect(obj, ["hiddenProperty"]));
// HiddenClass {hiddenProperty: 1337}


https://github.com/eyalk11/scopeinspect-js

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Arch
  • Low reputation (0.5):
Posted by: user2679290