Skip to content

Commit ef9e9f9

Browse files
committed
fix(smol): correct line numbers in inspector protocol patch
1 parent c06c41e commit ef9e9f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/node-smol-builder/patches/012-socketsecurity_fix_inspector_protocol_windows_v24.10.0.patch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828

2929
--- a/deps/v8/third_party/inspector_protocol/code_generator.py
3030
+++ b/deps/v8/third_party/inspector_protocol/code_generator.py
31-
@@ -359,12 +359,27 @@ def to_file_name(config, file_name):
31+
@@ -358,12 +358,27 @@ def to_file_name(config, file_name):
3232

3333
class Protocol(object):
34+
3435
- def __init__(self, config):
3536
+ def __init__(self, config, config_file=None):
3637
self.config = config
@@ -57,11 +58,12 @@
5758

5859
if config.protocol.options:
5960
self.generate_domains = [rule.domain for rule in config.protocol.options]
60-
@@ -605,7 +620,7 @@ def write_object_h(domain, output_dir, header_guard_prefix, config, templates,
61+
@@ -604,7 +619,8 @@ def write_object_h(domain, output_dir, header_guard_prefix, config, templates,
6162

6263
def main():
6364
jinja_dir, config_file, config = read_config()
6465
- protocol = Protocol(config)
66+
+
6567
+ protocol = Protocol(config, config_file)
6668
if not config.exported and len(protocol.exported_domains):
6769
sys.stderr.write(("Domains [%s] are exported, but config is missing export "

0 commit comments

Comments
 (0)