tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Environment-inl.h (908B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
      2 * vim: set ts=8 sts=2 et sw=2 tw=80:
      3 * This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef debugger_Environment_inl_h
      8 #define debugger_Environment_inl_h
      9 
     10 #include "debugger/Environment.h"  // for DebuggerEnvironment
     11 
     12 #include "jstypes.h"            // for JS_PUBLIC_API
     13 #include "NamespaceImports.h"   // for Value
     14 #include "debugger/Debugger.h"  // for Debugger
     15 
     16 #include "debugger/Debugger-inl.h"  // for Debugger::fromJSObject
     17 
     18 class JS_PUBLIC_API JSObject;
     19 
     20 inline js::Debugger* js::DebuggerEnvironment::owner() const {
     21  JSObject* dbgobj = &getReservedSlot(OWNER_SLOT).toObject();
     22  return Debugger::fromJSObject(dbgobj);
     23 }
     24 
     25 #endif /* debugger_Environment_inl_h */