зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1726737 - Part 16: Move JS_DefineDebuggerObject into js/Debug.h. r=arai
Moves `JS_DefineDebuggerObject` into "js/Debug.h", which allows to remove the "jsapi.h" include in "debugger/Debugger.h". And then add the missing "jsapi.h" include in "debugger/DebuggerMemory.cpp". Differential Revision: https://phabricator.services.mozilla.com/D123207
This commit is contained in:
Родитель
7a0811963e
Коммит
15ea79641a
|
@ -25,6 +25,10 @@ namespace js {
|
|||
class Debugger;
|
||||
} // namespace js
|
||||
|
||||
/* Defined in vm/Debugger.cpp. */
|
||||
extern JS_PUBLIC_API bool JS_DefineDebuggerObject(JSContext* cx,
|
||||
JS::HandleObject obj);
|
||||
|
||||
namespace JS {
|
||||
namespace dbg {
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include <stdint.h> // for uint32_t, uint64_t, uintptr_t
|
||||
#include <utility> // for std::move
|
||||
|
||||
#include "jsapi.h" // JS_DefineDebuggerObject
|
||||
#include "jstypes.h" // for JS_GC_ZEAL
|
||||
#include "NamespaceImports.h" // for Value, HandleObject
|
||||
|
||||
|
@ -35,6 +34,7 @@
|
|||
#include "gc/Tracer.h" // for TraceNullableEdge, TraceEdge
|
||||
#include "gc/WeakMap.h" // for WeakMap
|
||||
#include "gc/ZoneAllocator.h" // for ZoneAllocPolicy
|
||||
#include "js/Debug.h" // JS_DefineDebuggerObject
|
||||
#include "js/GCAPI.h" // for GarbageCollectionEvent
|
||||
#include "js/Proxy.h" // for PropertyDescriptor
|
||||
#include "js/RootingAPI.h" // for Handle
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
#include <stdlib.h>
|
||||
#include <utility>
|
||||
|
||||
#include "jsapi.h"
|
||||
|
||||
#include "builtin/MapObject.h"
|
||||
#include "debugger/Debugger.h"
|
||||
#include "gc/Marking.h"
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include "js/Class.h"
|
||||
#include "js/CompileOptions.h"
|
||||
#include "js/Context.h"
|
||||
#include "js/Debug.h"
|
||||
#include "js/ErrorInterceptor.h"
|
||||
#include "js/ErrorReport.h"
|
||||
#include "js/Exception.h"
|
||||
|
@ -266,10 +267,6 @@ extern JS_PUBLIC_API bool JS_InitReflectParse(JSContext* cx,
|
|||
extern JS_PUBLIC_API bool JS_DefineProfilingFunctions(JSContext* cx,
|
||||
JS::HandleObject obj);
|
||||
|
||||
/* Defined in vm/Debugger.cpp. */
|
||||
extern JS_PUBLIC_API bool JS_DefineDebuggerObject(JSContext* cx,
|
||||
JS::HandleObject obj);
|
||||
|
||||
namespace JS {
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче