|
| 1 | +/* |
| 2 | + * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | + * |
| 4 | + * This source code is licensed under the MIT license found in the |
| 5 | + * LICENSE file in the root directory of this source tree. |
| 6 | + */ |
| 7 | + |
| 8 | +/** |
| 9 | + * `console` methods that have no behaviour other than emitting a |
| 10 | + * Runtime.consoleAPICalled message. |
| 11 | + */ |
| 12 | + |
| 13 | +// console.clear |
| 14 | +FORWARDING_CONSOLE_METHOD(clear, ConsoleAPIType::kClear) |
| 15 | +// console.debug |
| 16 | +FORWARDING_CONSOLE_METHOD(debug, ConsoleAPIType::kDebug) |
| 17 | +// console.dir |
| 18 | +FORWARDING_CONSOLE_METHOD(dir, ConsoleAPIType::kDir) |
| 19 | +// console.dirxml |
| 20 | +FORWARDING_CONSOLE_METHOD(dirxml, ConsoleAPIType::kDirXML) |
| 21 | +// console.error |
| 22 | +FORWARDING_CONSOLE_METHOD(error, ConsoleAPIType::kError) |
| 23 | +// console.group |
| 24 | +FORWARDING_CONSOLE_METHOD(group, ConsoleAPIType::kStartGroup) |
| 25 | +// console.groupCollapsed |
| 26 | +FORWARDING_CONSOLE_METHOD(groupCollapsed, ConsoleAPIType::kStartGroupCollapsed) |
| 27 | +// console.groupEnd |
| 28 | +FORWARDING_CONSOLE_METHOD(groupEnd, ConsoleAPIType::kEndGroup) |
| 29 | +// console.info |
| 30 | +FORWARDING_CONSOLE_METHOD(info, ConsoleAPIType::kInfo) |
| 31 | +// console.log |
| 32 | +FORWARDING_CONSOLE_METHOD(log, ConsoleAPIType::kLog) |
| 33 | +// console.table |
| 34 | +FORWARDING_CONSOLE_METHOD(table, ConsoleAPIType::kTable) |
| 35 | +// console.trace |
| 36 | +FORWARDING_CONSOLE_METHOD(trace, ConsoleAPIType::kTrace) |
| 37 | +// console.warn |
| 38 | +FORWARDING_CONSOLE_METHOD(warn, ConsoleAPIType::kWarning) |
0 commit comments