Skip to content

Commit 9cd08cb

Browse files
Update src/inspector/network_agent.cc
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
1 parent d265030 commit 9cd08cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/inspector/network_agent.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ using v8::Value;
2525
constexpr size_t kDefaultMaxTotalBufferSize = 100 * 1024 * 1024; // 100MB
2626

2727
static void ThrowEventError(v8::Isolate* isolate, const std::string& message) {
28-
isolate->ThrowException(v8::Exception::Error(
28+
isolate->ThrowException(v8::Exception::TypeError(
2929
v8::String::NewFromUtf8(isolate, message.c_str()).ToLocalChecked()));
3030
}
3131

0 commit comments

Comments
 (0)