Lines Matching defs:context

38 #include "include/v8-context.h"
44 #include "src/inspector/inspected-context.h"
74 v8::Local<v8::Context> context, v8::Local<v8::Value> value,
79 if (!v8::Promise::Resolver::New(context).ToLocal(&resolver)) {
83 if (!resolver->Resolve(context, value).FromMaybe(false)) {
97 v8::Function::New(context, thenCallback, wrapper, 0,
101 v8::Function::New(context, catchCallback, wrapper, 0,
105 if (promise->Then(context, thenCallbackFunction, catchCallbackFunction)
195 if (!result->ToObject(scope.context()).ToLocal(&object)) {
202 if (!object->Get(scope.context(), name).ToLocal(&result)) {
252 session->inspector()->client()->dispatchError(scope.context(), message,
341 InjectedScript::InjectedScript(InspectedContext* context, int sessionId)
342 : m_context(context), m_sessionId(sessionId) {}
367 v8::Local<v8::Context> context = m_context->context();
375 if (!ValueMirror::getProperties(context, object, ownProperties,
399 mirror.getter->buildRemoteObject(context, wrapMode, &remoteObject);
402 bindRemoteObjectIfNeeded(sessionId, context, mirror.getter->v8Value(),
409 mirror.setter->buildRemoteObject(context, wrapMode, &remoteObject);
412 bindRemoteObjectIfNeeded(sessionId, context, mirror.setter->v8Value(),
419 mirror.symbol->buildRemoteObject(context, wrapMode, &remoteObject);
422 bindRemoteObjectIfNeeded(sessionId, context, mirror.symbol->v8Value(),
429 mirror.exception->buildRemoteObject(context, wrapMode, &remoteObject);
431 response = bindRemoteObjectIfNeeded(sessionId, context,
457 v8::Local<v8::Context> context = m_context->context();
462 ValueMirror::getInternalProperties(m_context->context(), value_obj,
467 m_context->context(), WrapMode::kNoPreview, &remoteObject);
469 response = bindRemoteObjectIfNeeded(sessionId, context,
482 ValueMirror::getPrivateProperties(context, value_obj,
495 context, WrapMode::kNoPreview, &remoteObject);
497 response = bindRemoteObjectIfNeeded(sessionId, context,
506 context, WrapMode::kNoPreview, &remoteObject);
508 response = bindRemoteObjectIfNeeded(sessionId, context,
517 context, WrapMode::kNoPreview, &remoteObject);
519 response = bindRemoteObjectIfNeeded(sessionId, context,
548 v8::Local<v8::Context> context = m_context->context();
549 v8::Context::Scope contextScope(context);
550 std::unique_ptr<ValueMirror> mirror = ValueMirror::create(context, value);
562 v8::Local<v8::Context> context = m_context->context();
563 v8::Context::Scope contextScope(context);
564 Response response = mirror.buildRemoteObject(context, wrapMode, result);
567 response = bindRemoteObjectIfNeeded(sessionId, context, value, groupName,
580 response = mirror.buildWebDriverValue(context, maxDepth, &webDriverValue);
597 v8::Local<v8::Context> context = m_context->context();
604 auto mirror = ValueMirror::create(context, table);
607 mirror->buildObjectPreview(context, true /* generatePreviewForTable */,
617 if (v8Columns->Get(context, i).ToLocal(&column) && column->IsString()) {
661 if (ProtocolPromiseHandler::add(session, m_context->context(),
672 Response::ServerError("Execution context was destroyed."));
763 m_context->context(), toV8String(m_context->isolate(), value))
814 : message->GetLineNumber(m_context->context()).FromMaybe(1) -
819 : message->GetStartColumn(m_context->context()).FromMaybe(0))
862 m_context->context(), tryCatch.Message(), exception);
883 m_context->context(), m_sessionId));
908 m_context = m_injectedScript->context()->context();
1036 int sessionId, v8::Local<v8::Context> context, v8::Local<v8::Value> value,
1042 v8::Isolate* isolate = context->GetIsolate();
1046 inspector->getContext(InspectedContext::contextId(context));
1051 return Response::ServerError("Cannot find context with specified id");