(input)
| 695 | * @returns {Buffer} the converted buffer |
| 696 | */ |
| 697 | const asBuffer = (input) => { |
| 698 | if (!Buffer.isBuffer(input)) { |
| 699 | return Buffer.from(input, "utf8"); |
| 700 | } |
| 701 | return input; |
| 702 | }; |
| 703 | |
| 704 | /** @typedef {[string | Buffer, string | RawSourceMap | undefined, PreparsedAst | undefined]} Result */ |
| 705 |