File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
lib/rules/no-unsupported-features
tests/lib/rules/no-unsupported-features Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ const trackMap = {
52
52
kMaxLength : { [ READ ] : { supported : "3.0.0" } } ,
53
53
transcode : { [ READ ] : { supported : "7.1.0" } } ,
54
54
constants : { [ READ ] : { supported : "8.2.0" } } ,
55
+ Blob : { [ READ ] : { supported : null , experimental : "15.7.0" } } ,
55
56
} ,
56
57
child_process : {
57
58
ChildProcess : { [ READ ] : { supported : "2.2.0" } } ,
Original file line number Diff line number Diff line change @@ -959,6 +959,14 @@ new RuleTester({
959
959
{ version : "7.0.9" , ignores : [ "buffer.transcode" ] } ,
960
960
] ,
961
961
} ,
962
+ {
963
+ code : "const { Blob } = require('buffer'); new Blob();" ,
964
+ options : [ { version : "15.7.0" , ignores : [ "buffer.Blob" ] } ] ,
965
+ } ,
966
+ {
967
+ code : "import buffer from 'buffer'; new buffer.Blob();" ,
968
+ options : [ { version : "15.7.0" , ignores : [ "buffer.Blob" ] } ] ,
969
+ } ,
962
970
] ,
963
971
invalid : [
964
972
{
@@ -1172,6 +1180,34 @@ new RuleTester({
1172
1180
} ,
1173
1181
] ,
1174
1182
} ,
1183
+ {
1184
+ code : "const { Blob } = require('buffer'); new Blob();" ,
1185
+ options : [ { version : "15.7.0" } ] ,
1186
+ errors : [
1187
+ {
1188
+ messageId : "unsupported" ,
1189
+ data : {
1190
+ name : "buffer.Blob" ,
1191
+ supported : "(none yet)" ,
1192
+ version : "15.7.0" ,
1193
+ } ,
1194
+ } ,
1195
+ ] ,
1196
+ } ,
1197
+ {
1198
+ code : "import buffer from 'buffer'; new buffer.Blob();" ,
1199
+ options : [ { version : "15.7.0" } ] ,
1200
+ errors : [
1201
+ {
1202
+ messageId : "unsupported" ,
1203
+ data : {
1204
+ name : "buffer.Blob" ,
1205
+ supported : "(none yet)" ,
1206
+ version : "15.7.0" ,
1207
+ } ,
1208
+ } ,
1209
+ ] ,
1210
+ } ,
1175
1211
] ,
1176
1212
} ,
1177
1213
You can’t perform that action at this time.
0 commit comments