Skip to content

Commit

Permalink
Add objectRestSpread support data
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Oct 12, 2018
1 parent ab84650 commit 9a79122
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 76 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const dangerousTransforms = ['dangerousTaggedTemplateString', 'dangerousForOf'];
export function target(target) {
const targets = Object.keys(target);
let bitmask = targets.length
? 0b1111111111111111111111
: 0b0010000000000000000001;
? 0b11111111111111111111111
: 0b00010000000000000000001;

Object.keys(target).forEach(environment => {
const versions = matrix[environment];
Expand Down
149 changes: 75 additions & 74 deletions src/support.js
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
export const matrix = {
chrome: {
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
48: 0b00010010101000110011111,
49: 0b00010011111001111111111,
50: 0b00010111111001111111111,
51: 0b00010111111001111111111,
52: 0b00011111111001111111111,
53: 0b00011111111001111111111,
54: 0b00011111111001111111111,
55: 0b01011111111001111111111,
56: 0b01011111111001111111111,
57: 0b01011111111001111111111,
58: 0b01111111111001111111111,
59: 0b01111111111001111111111,
60: 0b11111111111001111111111,
61: 0b11111111111001111111111,
62: 0b11111111111001111111111,
63: 0b11111111111001111111111,
64: 0b11111111111001111111111,
65: 0b11111111111001111111111,
66: 0b11111111111001111111111,
67: 0b11111111111001111111111,
68: 0b11111111111001111111111,
69: 0b11111111111001111111111,
70: 0b11111111111001111111111,
71: 0b11111111111001111111111
},
firefox: {
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
43: 0b00010011101000110111011,
44: 0b00010011101000110111011,
45: 0b00010011101000110111111,
46: 0b00010111101000110111111,
47: 0b00010111101000111111111,
48: 0b00010111101000111111111,
49: 0b00010111101000111111111,
50: 0b00010111101000111111111,
51: 0b00010111101001111111111,
52: 0b01111111111001111111111,
53: 0b01111111111001111111111,
54: 0b01111111111001111111111,
55: 0b11111111111001111111111,
56: 0b11111111111001111111111,
57: 0b11111111111001111111111,
58: 0b11111111111001111111111,
59: 0b11111111111001111111111,
60: 0b11111111111001111111111,
61: 0b11111111111001111111111,
62: 0b11111111111001111111111,
63: 0b11111111111001111111111,
64: 0b11111111111001111111111
},
safari: {
8: 0b0010000000000000001001,
9: 0b0010010001000011011101,
10: 0b0110111111001111111111,
'10.1': 0b1111111111001111111111,
11: 0b1111111111001111111111,
'11.1': 0b1111111111001111111111,
12: 0b1111111111001111111111
8: 0b00010000000000000001001,
9: 0b00010010001000011011101,
10: 0b00110111111001111111111,
'10.1': 0b01111111111001111111111,
11: 0b01111111111001111111111,
'11.1': 0b11111111111001111111111,
12: 0b11111111111001111111111
},
ie: {
8: 0b0000000000000000000000,
9: 0b0010000000000000000001,
10: 0b0010000000000000000001,
11: 0b0010000000000000000001 // no let/const in for loops
8: 0b00000000000000000000000,
9: 0b00010000000000000000001,
10: 0b00010000000000000000001,
11: 0b00010000000000000000001 // no let/const in for loops
},
edge: {
12: 0b0010010101000010011011,
13: 0b0010111101000110011111,
14: 0b0111111101001111111111,
15: 0b1111111101001111111111,
16: 0b1111111101001111111111,
17: 0b1111111101001111111111,
18: 0b1111111101001111111111,
19: 0b1111111101001111111111
12: 0b00010010101000010011011,
13: 0b00010111101000110011111,
14: 0b00111111101001111111111,
15: 0b01111111101001111111111,
16: 0b01111111101001111111111,
17: 0b01111111101001111111111,
18: 0b01111111101001111111111,
19: 0b01111111101001111111111
},
node: {
'0.10': 0b0010000000000000000001,
'0.12': 0b0010000000000010000001,
4: 0b0010010001000110011111,
5: 0b0010010001000110011111,
6: 0b0010111111001111111111,
8: 0b1111111111001111111111,
'8.3': 0b1111111111001111111111,
'8.7': 0b1111111111001111111111,
'8.10': 0b1111111111001111111111
'0.10': 0b00010000000000000000001,
'0.12': 0b00010000000000010000001,
4: 0b00010010001000110011111,
5: 0b00010010001000110011111,
6: 0b00010111111001111111111,
8: 0b01111111111001111111111,
'8.3': 0b11111111111001111111111,
'8.7': 0b11111111111001111111111,
'8.10': 0b11111111111001111111111
}
};

Expand Down Expand Up @@ -116,4 +116,5 @@ export const features = [

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

0 comments on commit 9a79122

Please sign in to comment.