-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Closed
Labels
replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.
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'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.