We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a74c8b8 commit 7a0960bCopy full SHA for 7a0960b
tools/gen-postmortem-metadata.py
@@ -434,9 +434,13 @@ def load_fields():
434
# Emit a block of constants.
435
#
436
def emit_set(out, consts):
437
- for ii in range(0, len(consts)):
438
- out.write('int v8dbg_%s = %s;\n' %
439
- (consts[ii]['name'], consts[ii]['value']));
+ # Fix up overzealous parses. This could be done inside the
+ # parsers but as there are several, it's easiest to do it here.
+ ws = re.compile('\s+')
440
+ for const in consts:
441
+ name = ws.sub('', const['name'])
442
+ value = ws.sub('', str(const['value'])) # Can be a number.
443
+ out.write('int v8dbg_%s = %s;\n' % (name, value))
444
out.write('\n');
445
446
0 commit comments