OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_BUILTINS_BUILTINS_CONSOLE_H_ |
| 6 #define V8_BUILTINS_BUILTINS_CONSOLE_H_ |
| 7 |
| 8 #include "include/v8.h" |
| 9 #include "src/builtins/builtins-utils.h" |
| 10 |
| 11 namespace v8 { |
| 12 namespace internal { |
| 13 |
| 14 class ConsoleCallArguments : public v8::FunctionCallbackInfo<v8::Value> { |
| 15 public: |
| 16 // This wrapper to pass arguments only. Any attempt to get anything except |
| 17 // length and argument value will produce a crash. |
| 18 explicit ConsoleCallArguments(BuiltinArguments& args) |
| 19 : v8::FunctionCallbackInfo<v8::Value>(nullptr, &args[0] - 1, |
| 20 args.length() - 1) {} |
| 21 }; |
| 22 |
| 23 } // namespace internal |
| 24 } // namespace v8 |
| 25 |
| 26 #endif // V8_BUILTINS_BUILTINS_CONSOLE_H_ |
OLD | NEW |