From d16665614918e2bd71c488c0fd63f3abdb4f4c10 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 22 Nov 2014 23:44:47 +1100 Subject: [PATCH] add constructor spread caveat and add additional Array.from cases --- doc/caveats.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/doc/caveats.md b/doc/caveats.md index d50db7d371..d74028d26f 100644 --- a/doc/caveats.md +++ b/doc/caveats.md @@ -5,6 +5,16 @@ The [regenerator runtime](https://github.com/facebook/regenerator/blob/master/runtime.js) and an [ES6 polyfill](polyfill.md) are required in order for generators to work. +### Async/Comprehensions + +[Experimental support](usage.md#experimental) must be enabled for these proposed +ES7 features to work. + +### Array comprehension/Array destructuring/Spread + +An [ES6 polyfill](polyfill.md) is required. More specifically a polyfill for +`Array.from`. + ## Classes Built-in classes such as `Date`, `Array` and `DOM` cannot be subclassed due to @@ -31,13 +41,13 @@ class Bar extends Foo { } ``` +## Constructor spread + +Constructor spreads do not currently support built-ins. ie. +`new Array(...items)`. + ## For-of A polyfill is required for for-of functionality that implements `Symbol` and adds `prototype[Symbol.iterator]` behaviour to built-ins. Using the polyfills specified in [polyfill](polyfill.md) suffices. - -### Array destructuring / Spread - -An [ES6 polyfill](polyfill.md) is required for spread and array destructuring. -More specifically a polyfill for `Array.from`.