File tree 2 files changed +918
-6696
lines changed
2 files changed +918
-6696
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function buildPropertiesWithMDNData(vscProperties) {
30
30
if ( allMDNProperties [ p . name ] ) {
31
31
propertyMap [ p . name ] = {
32
32
...p ,
33
- ...allMDNProperties [ p . name ]
33
+ ...extractMDNProperties ( allMDNProperties [ p . name ] )
34
34
}
35
35
} else {
36
36
propertyMap [ p . name ] = p
@@ -47,14 +47,24 @@ function buildPropertiesWithMDNData(vscProperties) {
47
47
name : pn ,
48
48
description : '' ,
49
49
restriction : 'none' ,
50
- ...allMDNProperties [ pn ]
50
+ ...extractMDNProperties ( allMDNProperties [ pn ] )
51
51
}
52
52
}
53
53
}
54
54
55
55
return Object . values ( propertyMap )
56
56
}
57
57
58
+ /**
59
+ * Extract only the MDN data that we use
60
+ */
61
+ function extractMDNProperties ( mdnEntry ) {
62
+ return {
63
+ status : mdnEntry . status ,
64
+ syntax : mdnEntry . syntax
65
+ }
66
+ }
67
+
58
68
module . exports = {
59
69
buildPropertiesWithMDNData
60
70
}
You can’t perform that action at this time.
0 commit comments