Skip to content

Commit

Permalink
Don't access entities from Object.prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 3, 2022
1 parent 479fa57 commit 343f2cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/babel-parser/src/plugins/jsx/xhtml.js
@@ -1,6 +1,7 @@
// @flow

const entities: { [name: string]: string } = {
const entities: { [name: string]: string, __proto__: null } = {
__proto__: null,
quot: "\u0022",
amp: "&",
apos: "\u0027",
Expand Down
Expand Up @@ -38,10 +38,10 @@
"type": "JSXText",
"start":3,"end":12,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":12,"index":12}},
"extra": {
"rawValue": "function valueOf() { [native code] }",
"rawValue": "&valueOf;",
"raw": "&valueOf;"
},
"value": "function valueOf() { [native code] }"
"value": "&valueOf;"
}
]
}
Expand Down

0 comments on commit 343f2cc

Please sign in to comment.