From 4e20a99b89bf98a283b60fc4ee8d5e1747d50e44 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 3 Jan 2016 03:41:40 +0000 Subject: [PATCH] Revert "update core-js" --- .../src/definitions.js | 26 ++++++------------- packages/babel-polyfill/package.json | 2 +- packages/babel-runtime/package.json | 2 +- 3 files changed, 10 insertions(+), 20 deletions(-) diff --git a/packages/babel-plugin-transform-runtime/src/definitions.js b/packages/babel-plugin-transform-runtime/src/definitions.js index d8e8edc6be..6138d77b31 100644 --- a/packages/babel-plugin-transform-runtime/src/definitions.js +++ b/packages/babel-plugin-transform-runtime/src/definitions.js @@ -51,6 +51,10 @@ module.exports = { values: "object/values" }, + RegExp: { + escape: "regexp/escape" + }, + Math: { acosh: "math/acosh", asinh: "math/asinh", @@ -68,11 +72,7 @@ module.exports = { sign: "math/sign", sinh: "math/sinh", tanh: "math/tanh", - trunc: "math/trunc", - iaddh: "math/iaddh", - isubh: "math/isubh", - imulh: "math/imulh", - umulh: "math/umulh" + trunc: "math/trunc" }, Symbol: { @@ -97,16 +97,14 @@ module.exports = { endsWith: "string/ends-with", fromCodePoint: "string/from-code-point", includes: "string/includes", - padStart: "string/pad-start", - padEnd: "string/pad-end", + padLeft: "string/pad-left", + padRight: "string/pad-right", raw: "string/raw", repeat: "string/repeat", startsWith: "string/starts-with", trim: "string/trim", trimLeft: "string/trim-left", - trimRight: "string/trim-right", - trimStart: "string/trim-left", - trimEnd: "string/trim-right" + trimRight: "string/trim-right" }, Number: { @@ -136,14 +134,6 @@ module.exports = { preventExtensions: "reflect/prevent-extensions", setPrototypeOf: "reflect/set-prototype-of", set: "reflect/set" - }, - - System: { - global: "system/global" - }, - - Error: { - isError: "error/is-error" } } }; diff --git a/packages/babel-polyfill/package.json b/packages/babel-polyfill/package.json index 478f4caaba..955aa00e17 100644 --- a/packages/babel-polyfill/package.json +++ b/packages/babel-polyfill/package.json @@ -8,7 +8,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-polyfill", "main": "lib/index.js", "dependencies": { - "core-js": "^2.0.0", + "core-js": "^1.0.1", "babel-regenerator-runtime": "^6.3.13", "babel-runtime": "^5.0.0" } diff --git a/packages/babel-runtime/package.json b/packages/babel-runtime/package.json index 9a6c75016c..968a15a5e5 100644 --- a/packages/babel-runtime/package.json +++ b/packages/babel-runtime/package.json @@ -6,7 +6,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-runtime", "author": "Sebastian McKenzie ", "dependencies": { - "core-js": "^2.0.0" + "core-js": "^1.2.0" }, "devDependencies": { "babel-helpers": "^6.3.13",