Skip to content

Commit 5da517f

Browse files
committed
Upgraded to Babel 7 beta
1 parent d961d50 commit 5da517f

File tree

16 files changed

+687
-623
lines changed

16 files changed

+687
-623
lines changed

fixtures/debug-flag/expectation.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
if (true) {
42
console.log('woot');
53
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { assign } from 'ember-utils';
22
import { ENV } from 'ember-environment';
33
import DEFAULT_FEATURES from '@ember/features';
4-
54
export const FEATURES = assign(DEFAULT_FEATURES, ENV.FEATURES);
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
import { DEPRECATED_PARTIALS, DEPRECATED_CONTROLLERS } from '@ember/features';
2-
32
export let PartialComponentManager;
4-
if (DEPRECATED_PARTIALS) {
5-
throw new Error('You indicated you don\'t have any deprecations, however you are relying on DEPRECATED_PARTIALS.');
63

4+
if (DEPRECATED_PARTIALS) {
5+
throw new Error("You indicated you don't have any deprecations, however you are relying on DEPRECATED_PARTIALS.");
76
PartialComponentManager = class {
87
constructor() {
98
this.isDone = true;
109
}
10+
1111
};
1212
}
1313

1414
export let ObjectController;
15+
1516
if (DEPRECATED_CONTROLLERS) {
1617
ObjectController = class {
1718
constructor() {
1819
this.isDoneAsWell = true;
1920
}
21+
2022
};
2123
}
2224

2325
export default class TheThingToReplaceControllers {
2426
constructor() {
2527
this.isNew = true;
2628
}
29+
2730
}

fixtures/ember-cli-babel-config/expectation.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
if (true) {
42
doStuff();
53
}

fixtures/hygenic-debug-injection/expectation.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import bar from 'something';
32

43
if (bar()) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
2-
31
let testing;
2+
43
if (false) {
54
testing = 'WOOT';
65
}
76

87
let debug;
8+
99
if (true) {
1010
debug = 'DEBUG';
1111
}

fixtures/inline-feature-flags/expectation.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
2-
31
let a;
2+
43
if (false) {
54
a = () => console.log('hello');
65
} else if (true) {
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
1-
2-
31
export let PartialComponentManager;
2+
43
if (false) {
54
PartialComponentManager = class {
65
constructor() {
76
this.isDone = true;
87
}
8+
99
};
1010
}
1111

1212
export let ObjectController;
13+
1314
if (true) {
1415
ObjectController = class {
1516
constructor() {
1617
this.isDoneAsWell = true;
1718
}
19+
1820
};
1921
}
2022

2123
export default class TheThingToReplaceControllers {
2224
constructor() {
2325
this.isNew = true;
2426
}
27+
2528
}

fixtures/retain-module-external-helpers/expectation.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { warn, assert, deprecate } from '@ember/debug-tools';
2-
32
(true && warn('This is a warning'));
43
(true && assert('Hahahaha', false));
54
(true && !(true) && deprecate('This thing is donzo', true, {
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
21
import { isTesting } from '@ember/debug-tools';
3-
42
(true && console.warn('This is a warning'));

0 commit comments

Comments
 (0)