Skip to content

Commit e4bef21

Browse files
committed
revert(smol): restore original inspector protocol patch
Restore original git-diff formatted patch that was working. The previous attempt to convert to unified diff format failed validation.
1 parent c821ea1 commit e4bef21

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
# - Node.js v24 gyp build system Windows argument passing
2828
# - tools/v8_gypfiles/v8.gyp protocol_generated_sources action
2929

30+
diff --git a/deps/v8/third_party/inspector_protocol/code_generator.py b/deps/v8/third_party/inspector_protocol/code_generator.py
31+
index b1bedb58..c702516a 100755
3032
--- a/deps/v8/third_party/inspector_protocol/code_generator.py
3133
+++ b/deps/v8/third_party/inspector_protocol/code_generator.py
32-
@@ -602,8 +602,20 @@ class Protocol(object):
33-
34+
@@ -604,8 +604,20 @@ class Protocol(object):
3435
def main():
3536
jinja_dir, config_file, config = read_config()
36-
-
37+
3738
- protocol = Protocol(config)
38-
+
3939
+ # Windows gyp-win-tool may fail to pass --config_value correctly.
4040
+ # Fall back to computing the path from the config file location.
4141
+ if not hasattr(config.protocol, 'path'):
@@ -48,8 +48,8 @@
4848
+ config = config._replace(protocol=protocol_obj) if hasattr(config, '_replace') else config
4949
+ else:
5050
+ raise Exception("config.protocol.path not set and config_file not provided")
51-
+
52-
+ protocol = Protocol(config)
5351

52+
+ protocol = Protocol(config)
53+
+
5454
if not config.exported and len(protocol.exported_domains):
5555
sys.stderr.write(("Domains [%s] are exported, but config is missing export "

0 commit comments

Comments
 (0)