| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ def translate_config(out_dir, config, v8_config): | |||
| 58 | 58 | 'llvm_version': 13, | |
| 59 | 59 | 'napi_build_version': config['napi_build_version'], | |
| 60 | 60 | 'node_builtin_shareable_builtins': | |
| 61 | - eval(config['node_builtin_shareable_builtins']), | ||
| 61 | + json.loads(config['node_builtin_shareable_builtins']), | ||
| 62 | 62 | 'node_module_version': int(config['node_module_version']), | |
| 63 | 63 | 'node_use_openssl': config['node_use_openssl'], | |
| 64 | 64 | 'node_use_amaro': config['node_use_amaro'], | |
@@ -102,7 +102,8 @@ def main(): | |||
| 102 | 102 | ||
| 103 | 103 | # Write output. | |
| 104 | 104 | with open(args.target, 'w') as f: | |
| 105 | - f.write(repr(translate_config(args.out_dir, config, v8_config))) | ||
| 105 | + f.write(json.dumps(translate_config(args.out_dir, config, v8_config), | ||
| 106 | + sort_keys=True)) | ||
| 106 | 107 | ||
| 107 | 108 | # Write depfile. Force regenerating config.gypi when GN configs change. | |
| 108 | 109 | if args.dep_file: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments