* @param {string} input * @returns {string} * * @see https://infra.spec.whatwg.org/#isomorphic-encode
(input)
| 147 | * @see https://infra.spec.whatwg.org/#isomorphic-encode |
| 148 | */ |
| 149 | function isomorphicEncode (input) { |
| 150 | // 1. Assert: input contains no code points greater than U+00FF. |
| 151 | assert(!invalidIsomorphicEncodeValueRegex.test(input)) |
| 152 | |
| 153 | // 2. Return a byte sequence whose length is equal to input’s code |
| 154 | // point length and whose bytes have the same values as the |
| 155 | // values of input’s code points, in the same order |
| 156 | return input |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * @see https://infra.spec.whatwg.org/#parse-json-bytes-to-a-javascript-value |
no test coverage detected