Skip to content

Conversation

ljharb
Copy link
Collaborator

@ljharb ljharb commented Dec 18, 2013

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
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
Copy link
Collaborator Author

ljharb commented Dec 19, 2013

@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
Contributor

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

Then why bother with this patch?

@ljharb
Copy link
Collaborator Author

ljharb commented Dec 19, 2013

You raise good points. PR coming.

@mathiasbynens
Copy link
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