Skip to content

Commit

Permalink
fix(no_prototyp_builtins): typo (#2929)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant authored May 21, 2024
1 parent ea0c565 commit e3ecd97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ declare_rule! {
/// Moreover, the methods could be shadowed, this can lead to random bugs and denial of service
/// vulnerabilities. For example, calling `hasOwnProperty` directly on parsed JSON like `{"hasOwnProperty": 1}` could lead to vulnerabilities.
/// To avoid subtle bugs like this, you should call these methods from `Object.prototype`.
/// For example, `foo.isPrototypeof(bar)` should be replaced with `Object.prototype.isPrototypeof.call(foo, "bar")`
/// For example, `foo.isPrototypeOf(bar)` should be replaced with `Object.prototype.isPrototypeOf.call(foo, "bar")`
/// As for the `hasOwn` method, `foo.hasOwn("bar")` should be replaced with `Object.hasOwn(foo, "bar")`.
///
/// ## Examples
Expand Down

0 comments on commit e3ecd97

Please sign in to comment.