File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 22
33const {
44 ObjectDefineProperties,
5+ ObjectDefineProperty,
56 SymbolToStringTag,
67} = primordials ;
78
@@ -47,11 +48,13 @@ const isCountQueuingStrategy =
4748 * }} QueuingStrategy
4849 */
4950
50- // eslint-disable-next-line func-name-matching,func-style
51- const byteSizeFunction = function size ( chunk ) { return chunk . byteLength ; } ;
52-
53- // eslint-disable-next-line func-name-matching,func-style
54- const countSizeFunction = function size ( ) { return 1 ; } ;
51+ const nameDescriptor = { __proto__ : null , value : 'size' } ;
52+ const byteSizeFunction = ObjectDefineProperty (
53+ ( chunk ) => chunk . byteLength ,
54+ 'name' ,
55+ nameDescriptor
56+ ) ;
57+ const countSizeFunction = ObjectDefineProperty ( ( ) => 1 , 'name' , nameDescriptor ) ;
5558
5659/**
5760 * @type {QueuingStrategy }
Original file line number Diff line number Diff line change 22 "queuing-strategies-size-function-per-global.window.js" : {
33 "skip" : " Browser-specific test"
44 },
5- "queuing-strategies.any.js" : {
6- "fail" : {
7- "expected" : [
8- " CountQueuingStrategy: size should not have a prototype property" ,
9- " ByteLengthQueuingStrategy: size should not have a prototype property" ,
10- " CountQueuingStrategy: size should not be a constructor" ,
11- " ByteLengthQueuingStrategy: size should not be a constructor"
12- ]
13- }
14- },
155 "readable-streams/cross-realm-crash.window.js" : {
166 "skip" : " Browser-specific test"
177 },
You can’t perform that action at this time.
0 commit comments