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

add builtins assumptions #2283

Merged
merged 2 commits into from Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions docs/caveats.md
Expand Up @@ -10,14 +10,18 @@ Babel feature requirements by using [@babel/polyfill](polyfill.md).

You may alternatively/selectively include what you need:

| Feature | Requirements |
| --------------------------- | ------------------------------------------------------------------------------------- |
| Feature | Requirements |
| --------------------------- | ------------------------------------------------------------------------------------------------------- |
| Async functions, Generators | [regenerator runtime](https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime) |
| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` |
| Spread | `Array.from` |
| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` |
| Spread | `Array.from` |

There is also the `loose` option for some of these plugins.

## Built-ins

Babel assumes that built-ins (e.g. `Array`, `WeakMap` and others) are not modified in a spec-incompliant way. That said, Babel still accepts proper polyfills of built-ins.
JLHwung marked this conversation as resolved.
Show resolved Hide resolved

## Classes

Built-in classes such as `Date`, `Array`, `DOM` etc cannot be properly subclassed
Expand Down
12 changes: 8 additions & 4 deletions website/versioned_docs/version-6.26.3/caveats.md
Expand Up @@ -11,14 +11,18 @@ Babel feature requirements by using [babel-polyfill](polyfill.md).

You may alternatively/selectively include what you need:

| Feature | Requirements |
| --------------------------- | ------------------------------------------------------------------------------------- |
| Feature | Requirements |
| --------------------------- | ------------------------------------------------------------------------------------------------------- |
| Async functions, Generators | [regenerator runtime](https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime) |
| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` |
| Spread | `Array.from` |
| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` |
| Spread | `Array.from` |

There is also the `loose` option for some of these plugins.

## Built-ins

Babel assumes that built-ins (e.g. `Array`, `WeakMap` and others) are not modified in a spec-incompliant way. That said, Babel still accepts proper polyfills of built-ins.

## Classes

Built-in classes such as `Date`, `Array`, `DOM` etc cannot be properly subclassed
Expand Down
12 changes: 8 additions & 4 deletions website/versioned_docs/version-7.0.0/caveats.md
Expand Up @@ -11,14 +11,18 @@ Babel feature requirements by using [@babel/polyfill](polyfill.md).

You may alternatively/selectively include what you need:

| Feature | Requirements |
| --------------------------- | ------------------------------------------------------------------------------------- |
| Feature | Requirements |
| --------------------------- | ------------------------------------------------------------------------------------------------------- |
| Async functions, Generators | [regenerator runtime](https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime) |
| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` |
| Spread | `Array.from` |
| Array destructuring, For Of | `Symbol`, `prototype[Symbol.iterator]` |
| Spread | `Array.from` |

There is also the `loose` option for some of these plugins.

## Built-ins

Babel assumes that built-ins (e.g. `Array`, `WeakMap` and others) are not modified in a spec-incompliant way. That said, Babel still accepts proper polyfills of built-ins.

## Classes

Built-in classes such as `Date`, `Array`, `DOM` etc cannot be properly subclassed
Expand Down