GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: update v8_inspector · nodejs/node@f4777c7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deps/v8_inspector/platform
    • inspector_protocol
      • CodeGenerator.py
      • TypeBuilder_h.template
    • v8_inspector
      • V8Compat.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/v8_inspector/platform/inspector_protocol/CodeGenerator.py‎

Copy file name to clipboardExpand all lines: deps/v8_inspector/platform/inspector_protocol/CodeGenerator.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ def create_primitive_type_definition(type):
180180
"integer": "int",
181181
"boolean": "bool"
182182
}
183+
defaults = {
184+
"number": "0",
185+
"integer": "0",
186+
"boolean": "false"
187+
}
183188
jsontypes = {
184189
"number": "TypeNumber",
185190
"integer": "TypeNumber",
@@ -195,6 +200,7 @@ def create_primitive_type_definition(type):
195200
"raw_type": typedefs[type],
196201
"raw_pass_type": typedefs[type],
197202
"raw_return_type": typedefs[type],
203+
"default_value": defaults[type]
198204
}
199205

200206
type_definitions = {}
Collapse file

‎deps/v8_inspector/platform/inspector_protocol/TypeBuilder_h.template‎

Copy file name to clipboardExpand all lines: deps/v8_inspector/platform/inspector_protocol/TypeBuilder_h.template
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,14 @@ public:
187187
}
188188

189189
private:
190-
{{type.id}}() { }
190+
{{type.id}}()
191+
{
192+
{% for property in type.properties %}
193+
{% if not(property.optional) and "default_value" in resolve_type(property) %}
194+
m_{{property.name}} = {{resolve_type(property).default_value}};
195+
{%endif %}
196+
{% endfor %}
197+
}
191198

192199
{% for property in type.properties %}
193200
{% if property.optional %}
Collapse file

‎deps/v8_inspector/platform/v8_inspector/V8Compat.h‎

Copy file name to clipboardExpand all lines: deps/v8_inspector/platform/v8_inspector/V8Compat.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include <v8.h>
99

10-
#if V8_MAJOR_VERSION < 5 || (V8_MAJOR_VERSION == 5 && V8_MINOR_VERSION < 2)
10+
#if V8_MAJOR_VERSION < 5 || (V8_MAJOR_VERSION == 5 && V8_MINOR_VERSION < 1)
1111
namespace v8 {
1212

1313
// In standalone V8 inspector this is expected to be noop anyways...
@@ -23,6 +23,6 @@ class V8_EXPORT MicrotasksScope {
2323

2424
} // namespace v8
2525

26-
#endif // V8_MAJOR_VERSION < 5 || (V8_MAJOR_VERSION == 5 && V8_MINOR_VERSION < 2)
26+
#endif // V8_MAJOR_VERSION < 5 || (V8_MAJOR_VERSION == 5 && V8_MINOR_VERSION < 1)
2727

2828
#endif // V8Compat_h

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.