From a2da61a497c1d683cb6693faa0da805f11766ec4 Mon Sep 17 00:00:00 2001
From: Sebastian McKenzie
Date: Sun, 8 Nov 2015 06:41:55 -0800
Subject: [PATCH 1/6] switch from stable flag in travis config to 5.0
---
.travis.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 92b900ef7f..631f15a9fb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,11 +8,11 @@ cache:
- node_modules
node_js:
+ - "5.0"
- "4.0"
- iojs
- "0.10"
- "0.12"
- - "stable"
script: make test-travis
after_success:
From 5f732d1c024905a7455b77f334f50629dedb491c Mon Sep 17 00:00:00 2001
From: Sebastian McKenzie
Date: Sun, 8 Nov 2015 06:43:32 -0800
Subject: [PATCH 2/6] ignore babel-runtime version mismatch in babel-doctor -
fixes #2915
---
packages/babel-cli/src/babel-doctor/rules/latest-packages.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/packages/babel-cli/src/babel-doctor/rules/latest-packages.js b/packages/babel-cli/src/babel-doctor/rules/latest-packages.js
index c91577931b..ddea4a2efa 100644
--- a/packages/babel-cli/src/babel-doctor/rules/latest-packages.js
+++ b/packages/babel-cli/src/babel-doctor/rules/latest-packages.js
@@ -39,6 +39,9 @@ export default async function (packages) {
let info = infos[i];
let pkg = filteredPackages[i];
+ // https://github.com/babel/babel/issues/2915
+ if (pkg.name === "babel-runtime") continue;
+
if (info.version !== pkg.version) {
messages.push(`${pkg.name} - Latest is ${info.version}. Local version is ${pkg.version}`);
}
From 81ba799ba4459db3d5a079a6b39e5f5439248429 Mon Sep 17 00:00:00 2001
From: Sebastian McKenzie
Date: Sun, 8 Nov 2015 06:51:20 -0800
Subject: [PATCH 3/6] add compiler support document - closes #2839
---
doc/design/compiler-environment-support.md | 15 +++++++++++++++
doc/design/compiler-guarantees.md | 0
2 files changed, 15 insertions(+)
create mode 100644 doc/design/compiler-environment-support.md
delete mode 100644 doc/design/compiler-guarantees.md
diff --git a/doc/design/compiler-environment-support.md b/doc/design/compiler-environment-support.md
new file mode 100644
index 0000000000..4a85e9d3df
--- /dev/null
+++ b/doc/design/compiler-environment-support.md
@@ -0,0 +1,15 @@
+# Compiler environment support
+
+The Babel compiler is **only** supported in these environments:
+
+ - Modern browsers such as Chrome, Firefox, Safari, Edge etc.
+ - Node 0.10+
+
+This means that notably Babel does not support the following environments:
+
+ - Rhino
+ - Nashorn
+ - Internet Explorer
+ - ...
+
+**NOTE:** Compiler support does not dictate the runtime requirements of compiled code.
diff --git a/doc/design/compiler-guarantees.md b/doc/design/compiler-guarantees.md
deleted file mode 100644
index e69de29bb2..0000000000
From 52363ab8d8b6aee0e1dc81f6230d05d69fbf4148 Mon Sep 17 00:00:00 2001
From: Sebastian McKenzie
Date: Sun, 8 Nov 2015 06:56:18 -0800
Subject: [PATCH 4/6] remove err.stack hack
---
packages/babel-core/src/transformation/file/index.js | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/packages/babel-core/src/transformation/file/index.js b/packages/babel-core/src/transformation/file/index.js
index 9257f8f882..8871182bf6 100644
--- a/packages/babel-core/src/transformation/file/index.js
+++ b/packages/babel-core/src/transformation/file/index.js
@@ -453,11 +453,7 @@ export default class File extends Store {
if (err.stack) {
let newStack = err.stack.replace(err.message, message);
- try {
- err.stack = newStack;
- } catch (e) {
- // `err.stack` may be a readonly property in some environments
- }
+ err.stack = newStack;
}
throw err;
From 9b48167a0063374729448226a81d218e119b55b2 Mon Sep 17 00:00:00 2001
From: Sebastian McKenzie
Date: Sun, 8 Nov 2015 06:56:50 -0800
Subject: [PATCH 5/6] switch back to stable flag
---
.travis.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 631f15a9fb..fb09487bc7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,7 +8,7 @@ cache:
- node_modules
node_js:
- - "5.0"
+ - stable
- "4.0"
- iojs
- "0.10"
From 826538790e6238fe4642b6f7e0bd69143c998e10 Mon Sep 17 00:00:00 2001
From: Sebastian McKenzie
Date: Sun, 8 Nov 2015 06:58:30 -0800
Subject: [PATCH 6/6] switch travis build badge in readme to only be of the
master branch
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index edd97f9662..d747d2503e 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@
-
+