From 20eb14391557f4b24dcc9f8ed095c8098476b99e Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 10 Mar 2015 03:27:13 +1100 Subject: [PATCH] remove `Number` from the list of valid `runtime` constructors - fixes #981 --- CHANGELOG.md | 1 + src/babel/transformation/transformers/other/runtime.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = {