Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure shims are elided correctly #401

Merged
merged 4 commits into from
Jun 18, 2019

Conversation

agubler
Copy link
Member

@agubler agubler commented Jun 17, 2019

Type: bug

The following has been addressed in the PR:

Description:

Add has flags to ensure that shims are elided correctly.

@agubler agubler requested a review from matt-gadd June 18, 2019 09:56
const normalizeOffset = function normalizeOffset(value: number, length: number): number {
return value < 0 ? Math.max(length + value, 0) : Math.min(value, length);
};
if (!has('es6-array') && !has('es6-array-fill') && !has('es7-array')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be a number of or's

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.

2 participants