Closed
Description
- Version: v8.7.0
The defined 'not ready' error is raised when evaluating the proxy. This error does not occur in chrome or firefox consoles.
const o1 = {
ready: false
};
setTimeout(() => {
o1.ready = true;
}, 1000000000);
const handler = {
get(target, propKey, receiver) {
if (target.ready == false) {
throw new Error('not ready');
} else {
return 'ready'
}
}
};
const proxy = new Proxy(o1, handler);
proxy; // raises 'not ready'