Skip to content

Some shims don’t guard against Object.prototype modifications #175

Closed
@mathiasbynens

Description

@mathiasbynens

Add this to the tests:

Object.prototype[1] = 42; // try to break `arguments[1]`
Object.prototype[2] = 'lol'; // try to break `arguments[2]`

Functions and methods that might have this issue:

  • Array: from, fill, find, findIndex
  • String: startsWith, endsWith, contains

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions