diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d8d1ca2c8..645e735efc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog. * **Bug Fix** * Rewrite named function expressions in optional async function transformers. * Hoist directives. + * Remove `Number` from the list of valid `runtime` constructors. * **Internal** * `spec.typeofSymbol` transformer has been renamed to `es6.symbols`. diff --git a/src/babel/transformation/transformers/other/runtime.js b/src/babel/transformation/transformers/other/runtime.js index 61ddc5f3ec..6b3fd00e45 100644 --- a/src/babel/transformation/transformers/other/runtime.js +++ b/src/babel/transformation/transformers/other/runtime.js @@ -16,8 +16,7 @@ var ALIASABLE_CONSTRUCTORS = [ "Map", "WeakMap", "Set", - "WeakSet", - "Number" + "WeakSet" ]; var astVisitor = {