Lines Matching refs:init
127 constructor (init) {
128 if (init instanceof HeadersList) {
129 this[kHeadersMap] = new Map(init[kHeadersMap])
130 this[kHeadersSortedMap] = init[kHeadersSortedMap]
131 this.cookies = init.cookies === null ? null : [...init.cookies]
133 this[kHeadersMap] = new Map(init)
242 constructor (init = undefined) {
243 if (init === kConstruct) {
248 // The new Headers(init) constructor steps are:
253 // 2. If init is given, then fill this with init.
254 if (init !== undefined) {
255 init = webidl.converters.HeadersInit(init)
256 fill(this, init)