diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-12-04 08:20:37 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-12-06 15:23:33 +0100 |
commit | 9b4bf7de6c9a7c25f116c7a502384c20b5cfaea3 (patch) | |
tree | 2b0c843168dafb939d8df8a15b2aa72b76dee51d /deps/v8/src/debug/debug-interface.h | |
parent | b8fbe69db1292307adb2c2b2e0d5ef48c4ab2faf (diff) | |
download | android-node-v8-9b4bf7de6c9a7c25f116c7a502384c20b5cfaea3.tar.gz android-node-v8-9b4bf7de6c9a7c25f116c7a502384c20b5cfaea3.tar.bz2 android-node-v8-9b4bf7de6c9a7c25f116c7a502384c20b5cfaea3.zip |
deps: update V8 to 7.1.302.28
PR-URL: https://github.com/nodejs/node/pull/23423
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/src/debug/debug-interface.h')
-rw-r--r-- | deps/v8/src/debug/debug-interface.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/deps/v8/src/debug/debug-interface.h b/deps/v8/src/debug/debug-interface.h index ac8073e02c..14ccf2c20a 100644 --- a/deps/v8/src/debug/debug-interface.h +++ b/deps/v8/src/debug/debug-interface.h @@ -154,9 +154,11 @@ void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, Local<String> source); +enum ExceptionType { kException, kPromiseRejection }; + class DebugDelegate { public: - virtual ~DebugDelegate() {} + virtual ~DebugDelegate() = default; virtual void ScriptCompiled(v8::Local<Script> script, bool is_live_edited, bool has_compile_error) {} // |inspector_break_points_hit| contains id of breakpoints installed with @@ -166,8 +168,8 @@ class DebugDelegate { const std::vector<debug::BreakpointId>& inspector_break_points_hit) {} virtual void ExceptionThrown(v8::Local<v8::Context> paused_context, v8::Local<v8::Value> exception, - v8::Local<v8::Value> promise, bool is_uncaught) { - } + v8::Local<v8::Value> promise, bool is_uncaught, + ExceptionType exception_type) {} virtual bool IsFunctionBlackboxed(v8::Local<debug::Script> script, const debug::Location& start, const debug::Location& end) { @@ -179,7 +181,7 @@ void SetDebugDelegate(Isolate* isolate, DebugDelegate* listener); class AsyncEventDelegate { public: - virtual ~AsyncEventDelegate() {} + virtual ~AsyncEventDelegate() = default; virtual void AsyncEventOccurred(debug::DebugAsyncActionType type, int id, bool is_blackboxed) = 0; }; @@ -502,6 +504,20 @@ class PostponeInterruptsScope { std::unique_ptr<i::PostponeInterruptsScope> scope_; }; +class WeakMap : public v8::Object { + public: + V8_WARN_UNUSED_RESULT v8::MaybeLocal<v8::Value> Get( + v8::Local<v8::Context> context, v8::Local<v8::Value> key); + V8_WARN_UNUSED_RESULT v8::MaybeLocal<WeakMap> Set( + v8::Local<v8::Context> context, v8::Local<v8::Value> key, + v8::Local<v8::Value> value); + + static Local<WeakMap> New(v8::Isolate* isolate); + V8_INLINE static WeakMap* Cast(Value* obj); + + private: + WeakMap(); +}; } // namespace debug } // namespace v8 |