| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,6 +106,16 @@ primordials.SafePromise = makeSafe( | |||
| 106 | 106 | class SafePromise extends Promise {} | |
| 107 | 107 | ); | |
| 108 | 108 | ||
| 109 | + // Create copies of URI handling functions | ||
| 110 | + [ | ||
| 111 | + decodeURI, | ||
| 112 | + decodeURIComponent, | ||
| 113 | + encodeURI, | ||
| 114 | + encodeURIComponent, | ||
| 115 | + ].forEach((fn) => { | ||
| 116 | + primordials[fn.name] = fn; | ||
| 117 | + }); | ||
| 118 | + | ||
| 109 | 119 | // Create copies of the namespace objects | |
| 110 | 120 | [ | |
| 111 | 121 | 'JSON', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,7 @@ const { | |||
| 14 | 14 | Symbol, | |
| 15 | 15 | SymbolIterator, | |
| 16 | 16 | SymbolToStringTag, | |
| 17 | + decodeURIComponent, | ||
| 17 | 18 | } = primordials; | |
| 18 | 19 | ||
| 19 | 20 | const { inspect } = require('internal/util/inspect'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,6 +29,7 @@ const { | |||
| 29 | 29 | MathAbs, | |
| 30 | 30 | ObjectCreate, | |
| 31 | 31 | ObjectKeys, | |
| 32 | + decodeURIComponent, | ||
| 32 | 33 | } = primordials; | |
| 33 | 34 | ||
| 34 | 35 | const { Buffer } = require('buffer'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,6 +25,7 @@ const { | |||
| 25 | 25 | ObjectCreate, | |
| 26 | 26 | ObjectKeys, | |
| 27 | 27 | SafeSet, | |
| 28 | + decodeURIComponent, | ||
| 28 | 29 | } = primordials; | |
| 29 | 30 | ||
| 30 | 31 | const { toASCII } = require('internal/idna'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments