Skip to content

Commit

Permalink
Define Str in update_v8.py for V8 12.x (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nancy Harris authored Jan 24, 2024
1 parent 2aab675 commit beb327f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_v8.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def update_all():
# Now for some arbitrary code execution...
what = '{}:DEPS'.format(v8['commit'])
source = git('show', what, check_output=True, cwd=repodir(v8))
code = compile('def Var(k): return vars[k]\n' + source, 'DEPS', 'exec')
code = compile('def Var(k): return vars[k]\ndef Str(k): return str(k)\n' + source, 'DEPS', 'exec')
globls = {}
eval(code, globls)
v8_deps = globls['deps']
Expand Down

0 comments on commit beb327f

Please sign in to comment.