Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 64efc85d0304b3f706993622bc3b915f59d41347..6816047ddc2b1f5ceb53d2e35f2b99d7cd10e2f7 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -25,6 +25,7 @@ |
#include "src/base/safe_conversions.h" |
#include "src/base/utils/random-number-generator.h" |
#include "src/bootstrapper.h" |
+#include "src/builtins/builtins-utils.h" |
#include "src/char-predicates-inl.h" |
#include "src/code-stubs.h" |
#include "src/compiler-dispatcher/compiler-dispatcher.h" |
@@ -9671,6 +9672,22 @@ Local<Function> debug::GetBuiltin(Isolate* v8_isolate, Builtin builtin) { |
return Utils::ToLocal(handle_scope.CloseAndEscape(fun)); |
} |
+void debug::SetConsoleDelegate(Isolate* v8_isolate, ConsoleDelegate* delegate) { |
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); |
+ ENTER_V8(isolate); |
+ isolate->set_console_delegate(delegate); |
+} |
+ |
+debug::ConsoleCallArguments::ConsoleCallArguments( |
+ const v8::FunctionCallbackInfo<v8::Value>& info) |
+ : v8::FunctionCallbackInfo<v8::Value>(nullptr, info.values_, info.length_) { |
+} |
+ |
+debug::ConsoleCallArguments::ConsoleCallArguments( |
+ internal::BuiltinArguments& args) |
+ : v8::FunctionCallbackInfo<v8::Value>(nullptr, &args[0] - 1, |
+ args.length() - 1) {} |
+ |
MaybeLocal<debug::Script> debug::GeneratorObject::Script() { |
i::Handle<i::JSGeneratorObject> obj = Utils::OpenHandle(this); |
i::Object* maybe_script = obj->function()->shared()->script(); |