Skip to content

Commit 16e80da

Browse files
committed
fix(smol): add inspector protocol Windows patch with proper unified diff format
1 parent 72a6ef8 commit 16e80da

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@
2626
# - Node.js v24 gyp build system Windows argument passing
2727
# - tools/v8_gypfiles/v8.gyp protocol_generated_sources action
2828

29-
--- a/deps/v8/third_party/inspector_protocol/code_generator.py
30-
+++ b/deps/v8/third_party/inspector_protocol/code_generator.py
31-
@@ -358,12 +358,27 @@ def wrap_array_definition(type):
29+
@@ -357,12 +357,27 @@
30+
3231
class Protocol(object):
33-
32+
3433
- def __init__(self, config):
3534
+ def __init__(self, config, config_file=None):
3635
self.config = config
@@ -54,15 +53,15 @@
5453
+ config = config._replace(protocol=protocol_obj)
5554
+ self.config = config
5655
+ self.generate_domains = self.read_protocol_file(protocol_path)
57-
56+
5857
if config.protocol.options:
5958
self.generate_domains = [rule.domain for rule in config.protocol.options]
60-
@@ -604,7 +619,7 @@ def is_imported_dependency(self, domain):
59+
@@ -604,7 +619,7 @@
6160
def main():
6261
jinja_dir, config_file, config = read_config()
63-
62+
6463
- protocol = Protocol(config)
6564
+ protocol = Protocol(config, config_file)
66-
65+
6766
if not config.exported and len(protocol.exported_domains):
6867
sys.stderr.write(("Domains [%s] are exported, but config is missing export "

0 commit comments

Comments
 (0)