| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 23271dd commit 43c5b91
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,7 +38,7 @@ | |||
| 38 | 38 | ||
| 39 | 39 | # Reset this number to 0 on major V8 upgrades. | |
| 40 | 40 | # Increment by one for each non-official patch applied to deps/v8. | |
| 41 | - 'v8_embedder_string': '-node.10', | ||
| 41 | + 'v8_embedder_string': '-node.11', | ||
| 42 | 42 | ||
| 43 | 43 | ##### V8 defaults for Node.js ##### | |
| 44 | 44 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,6 +43,9 @@ def json_object_hook(object_dict): | |||
| 43 | 43 | items = [(k, os.path.join(output_base, v) if k == "output" else v) | |
| 44 | 44 | for (k, v) in items] | |
| 45 | 45 | keys, values = list(zip(*items)) | |
| 46 | + # 'async' is a keyword since Python 3.7. | ||
| 47 | + # Avoid namedtuple(rename=True) for compatibility with Python 2.X. | ||
| 48 | + keys = tuple('async_' if k == 'async' else k for k in keys) | ||
| 46 | 49 | return collections.namedtuple('X', keys)(*values) | |
| 47 | 50 | return json.loads(data, object_hook=json_object_hook) | |
| 48 | 51 | ||
@@ -555,7 +558,7 @@ def is_async_command(self, domain, command): | |||
| 555 | 558 | if not self.config.protocol.options: | |
| 556 | 559 | return False | |
| 557 | 560 | return self.check_options(self.config.protocol.options, domain, command, | |
| 558 | - "async", None, False) | ||
| 561 | + "async_", None, False) | ||
| 559 | 562 | ||
| 560 | 563 | def is_exported(self, domain, name): | |
| 561 | 564 | if not self.config.protocol.options: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments