-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools: update inspector_protocol to 0aafd2 #27770
Conversation
You need these changes from 608878c: diff --git a/tools/inspector_protocol/code_generator.py b/tools/inspector_protocol/code_generator.py
index 1e12343e05..7b555d7478 100755
--- a/tools/inspector_protocol/code_generator.py
+++ b/tools/inspector_protocol/code_generator.py
@@ -36,9 +36,9 @@ module_path, module_filename = os.path.split(os.path.realpath(__file__))
def read_config():
# pylint: disable=W0703
- def json_to_object(data, output_base, config_base):
+ def json_to_object(data, output_base):
def json_object_hook(object_dict):
- items = [(k, os.path.join(config_base, v) if k == "path" else v) for (k, v) in object_dict.items()]
+ items = [(k, os.path.join(output_base, v) if k == "path" else v) for (k, v) in object_dict.items()]
items = [(k, os.path.join(output_base, v) if k == "output" else v) for (k, v) in items]
keys, values = list(zip(*items))
return collections.namedtuple('X', keys)(*values)
@@ -69,7 +69,6 @@ def read_config():
jinja_dir = arg_options.jinja_dir
output_base = arg_options.output_base
config_file = arg_options.config
- config_base = os.path.dirname(config_file)
config_values = arg_options.config_value
except Exception:
# Work with python 2 and 3 http://docs.python.org/py3k/howto/pyporting.html
@@ -80,7 +79,7 @@ def read_config():
try:
config_json_file = open(config_file, "r")
config_json_string = config_json_file.read()
- config_partial = json_to_object(config_json_string, output_base, config_base)
+ config_partial = json_to_object(config_json_string, output_base)
config_json_file.close()
defaults = {
".use_snake_file_names": False, Now I get C++ compile errors, I'll dig some more. :-)
|
@targos bnoordhuis/io.js@4ac1158716 should give you a compiling build. Tests pass for me locally. |
Co-authored-by: Ben Noordhuis <[email protected]>
Thank you Ben, I included your changes! |
01d8bf1
to
f1ee906
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Partially RS)LGTM with some observations:
-
You check in roll.py but that's not something we use or could use, right?
-
Likewise, encoding_test.cc and encoding_test_helper.h aren't used or even built.
-
You check in encoding.cc and encoding.h but they're (re)generated from encoding_cpp.template and encoding_h.template, aren't they?
Aside: interesting that the inspector is adopting CBOR. Not that we currently use it but it's an interesting avenue to explore if we ever run into performance problems with the JSON-based protocol.
So, what I did is copy the same files the V8 checks in here: https://github.com/v8/v8/tree/master/third_party/inspector_protocol |
I was waiting for a 2nd LGTM but now it can land 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More than a bit rubber-stampy of me but LGTM
Landed in 5aaa7fe |
Co-authored-by: Ben Noordhuis <[email protected]> PR-URL: nodejs#27770 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Co-authored-by: Ben Noordhuis <[email protected]> PR-URL: #27770 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: Rich Trott <[email protected]>
/cc @nodejs/v8-inspector
I have the following error that I don't know how to fix: