Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: src/builtins/builtins-console.h

Issue 2785293002: [inspector] move console to builtins (Closed)
Patch Set: use console helper Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698