Skip to content

Commit

Permalink
Add support info for async/await
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Oct 12, 2018
1 parent bc02c36 commit ab84650
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 77 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -12,8 +12,8 @@ const dangerousTransforms = ['dangerousTaggedTemplateString', 'dangerousForOf'];
export function target(target) {
const targets = Object.keys(target);
let bitmask = targets.length
? 0b111111111111111111111
: 0b010000000000000000001;
? 0b1111111111111111111111
: 0b0010000000000000000001;

Object.keys(target).forEach(environment => {
const versions = matrix[environment];
Expand Down
151 changes: 76 additions & 75 deletions src/support.js
@@ -1,89 +1,89 @@
export const matrix = {
chrome: {
48: 0b010010101000110011111,
49: 0b010011111001111111111,
50: 0b010111111001111111111,
51: 0b010111111001111111111,
52: 0b011111111001111111111,
53: 0b011111111001111111111,
54: 0b011111111001111111111,
55: 0b011111111001111111111,
56: 0b011111111001111111111,
57: 0b011111111001111111111,
58: 0b111111111001111111111,
59: 0b111111111001111111111,
60: 0b111111111001111111111,
61: 0b111111111001111111111,
62: 0b111111111001111111111,
63: 0b111111111001111111111,
64: 0b111111111001111111111,
65: 0b111111111001111111111,
66: 0b111111111001111111111,
67: 0b111111111001111111111,
68: 0b111111111001111111111,
69: 0b111111111001111111111,
70: 0b111111111001111111111,
71: 0b111111111001111111111
48: 0b0010010101000110011111,
49: 0b0010011111001111111111,
50: 0b0010111111001111111111,
51: 0b0010111111001111111111,
52: 0b0011111111001111111111,
53: 0b0011111111001111111111,
54: 0b0011111111001111111111,
55: 0b1011111111001111111111,
56: 0b1011111111001111111111,
57: 0b1011111111001111111111,
58: 0b1111111111001111111111,
59: 0b1111111111001111111111,
60: 0b1111111111001111111111,
61: 0b1111111111001111111111,
62: 0b1111111111001111111111,
63: 0b1111111111001111111111,
64: 0b1111111111001111111111,
65: 0b1111111111001111111111,
66: 0b1111111111001111111111,
67: 0b1111111111001111111111,
68: 0b1111111111001111111111,
69: 0b1111111111001111111111,
70: 0b1111111111001111111111,
71: 0b1111111111001111111111
},
firefox: {
43: 0b010011101000110111011,
44: 0b010011101000110111011,
45: 0b010011101000110111111,
46: 0b010111101000110111111,
47: 0b010111101000111111111,
48: 0b010111101000111111111,
49: 0b010111101000111111111,
50: 0b010111101000111111111,
51: 0b010111101001111111111,
52: 0b111111111001111111111,
53: 0b111111111001111111111,
54: 0b111111111001111111111,
55: 0b111111111001111111111,
56: 0b111111111001111111111,
57: 0b111111111001111111111,
58: 0b111111111001111111111,
59: 0b111111111001111111111,
60: 0b111111111001111111111,
61: 0b111111111001111111111,
62: 0b111111111001111111111,
63: 0b111111111001111111111,
64: 0b111111111001111111111
43: 0b0010011101000110111011,
44: 0b0010011101000110111011,
45: 0b0010011101000110111111,
46: 0b0010111101000110111111,
47: 0b0010111101000111111111,
48: 0b0010111101000111111111,
49: 0b0010111101000111111111,
50: 0b0010111101000111111111,
51: 0b0010111101001111111111,
52: 0b1111111111001111111111,
53: 0b1111111111001111111111,
54: 0b1111111111001111111111,
55: 0b1111111111001111111111,
56: 0b1111111111001111111111,
57: 0b1111111111001111111111,
58: 0b1111111111001111111111,
59: 0b1111111111001111111111,
60: 0b1111111111001111111111,
61: 0b1111111111001111111111,
62: 0b1111111111001111111111,
63: 0b1111111111001111111111,
64: 0b1111111111001111111111
},
safari: {
8: 0b010000000000000001001,
9: 0b010010001000011011101,
10: 0b110111111001111111111,
'10.1': 0b111111111001111111111,
11: 0b111111111001111111111,
'11.1': 0b111111111001111111111,
12: 0b111111111001111111111
8: 0b0010000000000000001001,
9: 0b0010010001000011011101,
10: 0b0110111111001111111111,
'10.1': 0b1111111111001111111111,
11: 0b1111111111001111111111,
'11.1': 0b1111111111001111111111,
12: 0b1111111111001111111111
},
ie: {
8: 0b000000000000000000000,
9: 0b010000000000000000001,
10: 0b010000000000000000001,
11: 0b010000000000000000001 // no let/const in for loops
8: 0b0000000000000000000000,
9: 0b0010000000000000000001,
10: 0b0010000000000000000001,
11: 0b0010000000000000000001 // no let/const in for loops
},
edge: {
12: 0b010010101000010011011,
13: 0b010111101000110011111,
14: 0b111111101001111111111,
15: 0b111111101001111111111,
16: 0b111111101001111111111,
17: 0b111111101001111111111,
18: 0b111111101001111111111,
19: 0b111111101001111111111
12: 0b0010010101000010011011,
13: 0b0010111101000110011111,
14: 0b0111111101001111111111,
15: 0b1111111101001111111111,
16: 0b1111111101001111111111,
17: 0b1111111101001111111111,
18: 0b1111111101001111111111,
19: 0b1111111101001111111111
},
node: {
'0.10': 0b010000000000000000001,
'0.12': 0b010000000000010000001,
4: 0b010010001000110011111,
5: 0b010010001000110011111,
6: 0b010111111001111111111,
8: 0b111111111001111111111,
'8.3': 0b111111111001111111111,
'8.7': 0b111111111001111111111,
'8.10': 0b111111111001111111111
'0.10': 0b0010000000000000000001,
'0.12': 0b0010000000000010000001,
4: 0b0010010001000110011111,
5: 0b0010010001000110011111,
6: 0b0010111111001111111111,
8: 0b1111111111001111111111,
'8.3': 0b1111111111001111111111,
'8.7': 0b1111111111001111111111,
'8.10': 0b1111111111001111111111
}
};

Expand Down Expand Up @@ -114,5 +114,6 @@ export const features = [
// https://featuretests.io
'reservedProperties',

'trailingFunctionCommas'
'trailingFunctionCommas',
'asyncAwait',
];

0 comments on commit ab84650

Please sign in to comment.