Visual Studio Code, rebuilt in Rust
Rust
// js-debug sends an own getter as a lazy `(...)` variable, drawn with the `$(eye)` button.
const shape = {
get size() {
return 3;
},
};
function main() {
const box = Object.create(null, { size: { get: () => 3, enumerable: true }, area: Object.getOwnPropertyDescriptor(shape, 'size') });
debugger;
console.log(box);
}
main();