|
1 | | - function fileExists(path) { |
| 1 | +/* |
| 2 | + * Copyright (C) 2025 Apple Inc. All rights reserved. |
| 3 | + * |
| 4 | + * Redistribution and use in source and binary forms, with or without |
| 5 | + * modification, are permitted provided that the following conditions |
| 6 | + * are met: |
| 7 | + * 1. Redistributions of source code must retain the above copyright |
| 8 | + * notice, this list of conditions and the following disclaimer. |
| 9 | + * 2. Redistributions in binary form must reproduce the above copyright |
| 10 | + * notice, this list of conditions and the following disclaimer in the |
| 11 | + * documentation and/or other materials provided with the distribution. |
| 12 | + * |
| 13 | + * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY |
| 14 | + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 15 | + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 16 | + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR |
| 17 | + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 18 | + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 19 | + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 20 | + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 21 | + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 | + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 | + */ |
| 25 | + |
| 26 | + |
| 27 | +function fileExists(path) { |
| 28 | + return false; |
| 29 | +} |
| 30 | +function readFile(path, encoding) { |
| 31 | + return undefined; |
| 32 | +} |
| 33 | +var sys = { |
| 34 | + args: [], |
| 35 | + newLine: "\n", |
| 36 | + useCaseSensitiveFileNames: true, |
| 37 | + write: function (s) { |
| 38 | + }, |
| 39 | + writeOutputIsTTY: function () { |
2 | 40 | return false; |
3 | | - } |
4 | | - function readFile(path, encoding) { |
| 41 | + }, |
| 42 | + readFile: readFile, |
| 43 | + fileExists: fileExists, |
| 44 | + exit: function (exitCode) { |
| 45 | + }, |
| 46 | + getExecutingFilePath: function () { |
| 47 | + return "./"; |
| 48 | + }, |
| 49 | + getCurrentDirectory: function () { |
| 50 | + return "./"; |
| 51 | + }, |
| 52 | + getModifiedTime: function (path) { |
5 | 53 | return undefined; |
6 | | - } |
7 | | - var sys = { |
8 | | - args: [], |
9 | | - newLine: "\n", |
10 | | - useCaseSensitiveFileNames: true, |
11 | | - write: function (s) { |
12 | | - }, |
13 | | - writeOutputIsTTY: function () { |
14 | | - return false; |
15 | | - }, |
16 | | - readFile: readFile, |
17 | | - fileExists: fileExists, |
18 | | - exit: function (exitCode) { |
19 | | - }, |
20 | | - getExecutingFilePath: function () { |
21 | | - return "./"; |
22 | | - }, |
23 | | - getCurrentDirectory: function () { |
24 | | - return "./"; |
25 | | - }, |
26 | | - getModifiedTime: function (path) { |
27 | | - return undefined; |
28 | | - }, |
29 | | - createDirectory: function (path) { |
30 | | - }, |
31 | | - deleteFile: function (path) { |
32 | | - }, |
33 | | - }; |
| 54 | + }, |
| 55 | + createDirectory: function (path) { |
| 56 | + }, |
| 57 | + deleteFile: function (path) { |
| 58 | + }, |
| 59 | +}; |
0 commit comments