mirror of
https://github.com/denoland/deno.git
synced 2025-07-23 05:05:08 +00:00
refactor: update runtime code for primordial check for iterators (#13510)
This commit is contained in:
parent
9c7ed1c98b
commit
bf22f114a6
17 changed files with 141 additions and 65 deletions
|
@ -38,6 +38,7 @@
|
|||
ObjectKeys,
|
||||
ObjectPrototypeIsPrototypeOf,
|
||||
RegExpPrototypeTest,
|
||||
SafeArrayIterator,
|
||||
Symbol,
|
||||
SymbolFor,
|
||||
TypeError,
|
||||
|
@ -101,7 +102,9 @@
|
|||
*/
|
||||
function cloneInnerRequest(request) {
|
||||
const headerList = [
|
||||
...ArrayPrototypeMap(request.headerList, (x) => [x[0], x[1]]),
|
||||
...new SafeArrayIterator(
|
||||
ArrayPrototypeMap(request.headerList, (x) => [x[0], x[1]]),
|
||||
),
|
||||
];
|
||||
let body = null;
|
||||
if (request.body !== null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue