diff --git a/packages/babel-plugin-transform-runtime/src/definitions.js b/packages/babel-plugin-transform-runtime/src/definitions.js index 38fe3fdb97..76b8067a38 100644 --- a/packages/babel-plugin-transform-runtime/src/definitions.js +++ b/packages/babel-plugin-transform-runtime/src/definitions.js @@ -70,10 +70,6 @@ module.exports = { values: "object/values" }, - RegExp: { - escape: "regexp/escape" - }, - Math: { acosh: "math/acosh", asinh: "math/asinh", @@ -91,7 +87,11 @@ module.exports = { sign: "math/sign", sinh: "math/sinh", tanh: "math/tanh", - trunc: "math/trunc" + trunc: "math/trunc", + iaddh: "math/iaddh", + isubh: "math/isubh", + imulh: "math/imulh", + umulh: "math/umulh" }, Symbol: { @@ -116,14 +116,16 @@ module.exports = { endsWith: "string/ends-with", fromCodePoint: "string/from-code-point", includes: "string/includes", - padLeft: "string/pad-left", - padRight: "string/pad-right", + padStart: "string/pad-start", + padEnd: "string/pad-end", raw: "string/raw", repeat: "string/repeat", startsWith: "string/starts-with", trim: "string/trim", trimLeft: "string/trim-left", - trimRight: "string/trim-right" + trimRight: "string/trim-right", + trimStart: "string/trim-left", + trimEnd: "string/trim-right" }, Number: { @@ -153,6 +155,14 @@ 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 955aa00e17..478f4caaba 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": "^1.0.1", + "core-js": "^2.0.0", "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 968a15a5e5..9a6c75016c 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": "^1.2.0" + "core-js": "^2.0.0" }, "devDependencies": { "babel-helpers": "^6.3.13",