Skip to content

Always check arguments length before pulling from it#177

Merged
paulmillr merged 1 commit into
paulmillr:masterfrom
ljharb:fix_argument_checking
Dec 19, 2013
Merged

Always check arguments length before pulling from it#177
paulmillr merged 1 commit into
paulmillr:masterfrom
ljharb:fix_argument_checking

Conversation

@ljharb

@ljharb ljharb commented Dec 18, 2013

Copy link
Copy Markdown
Collaborator

Fixes #175. I intentionally did not add tests because I don't want to modify Object.prototype at all, however temporarily.

paulmillr added a commit that referenced this pull request Dec 19, 2013
Always check arguments length before pulling from it
@paulmillr paulmillr merged commit d8c4ec2 into paulmillr:master Dec 19, 2013
@mathiasbynens

Copy link
Copy Markdown
Contributor

I intentionally did not add tests because I don't want to modify Object.prototype at all, however temporarily.

Why not? They’re just tests. How else are you gonna verify this patch works correctly?

@ljharb

ljharb commented Dec 19, 2013

Copy link
Copy Markdown
Collaborator Author

@mathiasbynens feel free submit them in a PR, but I'm mostly OK with just saying "modifying the Object prototype is not supported" :-p

@mathiasbynens

Copy link
Copy Markdown
Contributor

I'm mostly OK with just saying "modifying the Object prototype is not supported"

Then why bother with this patch?

@ljharb

ljharb commented Dec 19, 2013

Copy link
Copy Markdown
Collaborator Author

You raise good points. PR coming.

@mathiasbynens

Copy link
Copy Markdown
Contributor

Already done: #179.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some shims don’t guard against Object.prototype modifications

3 participants