We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erroneous example code:
const new_code = 100; Object.prototype.s = new_code; console.log(new_code === new DOMException("", "s").code);
result: true. This is a result of using a plain JS object here:
true
deno/ext/web/01_dom_exception.js
Lines 56 to 79 in 5f405bf
const nameToCodeMapping = { __proto__: null, IndexSizeError: INDEX_SIZE_ERR, HierarchyRequestError: HIERARCHY_REQUEST_ERR,
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Erroneous example code:
result:
true
.This is a result of using a plain JS object here:
deno/ext/web/01_dom_exception.js
Lines 56 to 79 in 5f405bf
This could be fixed by not using the object prototype, like so:
The text was updated successfully, but these errors were encountered: