Niklas Mischkulnig
a080c82777
[cjs] Skip duplicate reexported bindings in namespace reexports ( #11739 )
2020-09-28 16:22:13 +02:00
Chintan Acharya
93429f8b09
Fix helpers.unsupportedIterableToArray for Map and Set ( #11495 )
...
Fixes #11494
2020-04-28 07:27:03 +02:00
Nicolò Ribaudo
10aa97bc10
Allow rest/spread on polyfilled or builtin iterables without Symbol support ( #11268 )
...
* Allow rest/spread on polyfilled or builtin iterables when `Symbol` unsupported
Currently, when `Symbol` is not supported, we allow using rest/spread with:
- arrays
- strings
- arguments
With this PR, it will be also possible to use it with
- maps
- sets
- binary arrays
While in old browsers es6 builtins would still need to be polyfilled, it's way
easier to polyfill them because `Symbol` cannot be reliably polyfilled.
I didn't use `instanceof` becase:
- it doesn't work with polyfills not attatched to the global scope
- when using Babel to load polyfills, it would force the inclusion of `Map` and `Set` polyfills even if they are not used
Downside: the current approach of relying on `toString || construcor.name` doesn't work with subclasses.
* Don't use Array.from for array-like objects
2020-03-17 08:14:05 +01:00
Nicolò Ribaudo
1ba41f2084
Throw better errors for non-iterables when Symbol doesn't exist ( #11264 )
2020-03-16 16:34:33 +01:00
Huáng Jùnliàng
b64cb9aaf1
fix: early return when instance is not iterable ( #10396 )
...
* fix: early return when instance is not iterable
* chore: update test fixtures
* fix: gaurd against arguments for old browsers
2019-09-06 18:09:57 +02:00
Nicolò Ribaudo
f195daa092
Don't add params of anonymous exported function decls to the outer scope ( #9613 )
...
* Don't add params of anonymous exported function decls to the outer scope
* Test
2019-03-01 00:09:49 +01:00
Brian Ng
f77c450cda
Bump prettier ( #9373 )
2019-01-22 09:16:32 -06:00
Daniel Tschinder
f4eec5ca79
Add new flag that indicates if a module has exports ( #9171 )
2018-12-12 21:24:44 -08:00
Logan Smyth
79b2af5997
Format fixture JSON with Prettier. ( #8658 )
2018-09-09 17:57:52 -07:00
Henry Zhu
10910a10f5
Remove yearly presets from repo, inline in standalone ( #8274 )
...
These were already deprecated in v6, just didn't remove the folders?
2018-07-09 14:23:25 -04:00
Justin Ridgewell
34d73ebef0
Correct update expression Number coercion ( #7766 )
...
* Correct update expression Number coercion
You have to `ToNumber` whatever the `UpdateExpression` argument is.
* Fix systemjs update expression
2018-04-22 13:50:11 -04:00
Logan Smyth
c662c2ada2
Use strict namespace behavior for mjs files. ( #7545 )
2018-03-15 13:27:01 -07:00
Logan Smyth
4d76d5dddc
Refactor Babel's helpers into smaller functions.
2018-03-05 09:32:39 -08:00
Logan Smyth
beb99dfda1
Rename test fixtures using module syntax to .mjs files.
2018-03-04 13:31:32 -08:00
Logan Smyth
62c1046249
Avoid re-traversing inserted references to the namespace binding. ( #7418 )
2018-02-22 23:54:29 -08:00
Nicolò Ribaudo
8659e1a88c
Remove old expected.{js,json} files ( #7187 )
2018-01-09 13:10:30 -06:00
Raja Sekar
0f42accb87
Renamed files
2018-01-09 15:36:42 +01:00
Henry Zhu
9ac326b075
remove es20xx prefixes from plugins and rename folders ( #6575 )
2017-10-28 20:43:15 -04:00