Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.4k
tools: refactor js2c.py for maximal python3 compat#25518
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
refack commented Jan 15, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
cclauss commented Feb 2, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Fascinating what upstream did... v8/v8@7164251 |
BridgeAR commented Mar 5, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
@nodejs/python @nodejs/tooling @nodejs/build PTAL |
cclauss commented Mar 6, 2019
Linter errors... |
1e23681 to 14912d8Compare This comment has been minimized.
This comment has been minimized.
refack commented Apr 4, 2019
@nodejs/python PTAL I've addressed most of the comments, and cleaned this up some more. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| # 2. turn pseudo-booleans strings into Booleans | ||
| config=re.sub('"true"', 'true', config) | ||
| config=re.sub('"false"', 'false', config) | ||
| returnconfig |
cclaussApr 5, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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.
# four lines --> one...# normalize string literals from ' into " and turn pseudo-booleans strings into Booleansreturnconfig.replace('\'', '"').replace('"true"', 'true').replace('"false"', 'false')
cclauss left a comment
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.
Great work!
refack commented Apr 12, 2019
@nodejs/python @nodejs/build-files PTAL. |
BridgeAR commented Apr 15, 2019
This requires a rebase. |
2c3d1e7 to 2627feaCompare This comment has been minimized.
This comment has been minimized.
Trott commented Apr 23, 2019
This looks good to me but my Python expertise is limited. Would much prefer it land with a review from @nodejs/python, but I'll give it a somewhat-rubber stamp LGTM if no one more informed steps in to review/approve/oppose/whatever it. |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
* add explicit `--target` argument to enable succinct gyp declaration * simplify js2c semantics PR-URL: nodejs#25518 Reviewed-By: Christian Clauss <[email protected]>
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot commented May 18, 2019
nodejs-github-bot commented May 18, 2019
* add explicit `--target` argument to enable succinct gyp declaration * simplify js2c semantics PR-URL: #25518 Reviewed-By: Christian Clauss <[email protected]>
joyeecheung commented May 29, 2019
This landed as |
refack commented May 30, 2019
@joyeecheung you are right. That was not the intention of this PR and it's probably a rebasing artifact. I intended to move all the one-bye/two-byte changes to #27095 (we're we agreed to shelf that change)... |
refack commented May 30, 2019
Regression fix in #27980 |
make lint-py PYTHON=python2andmake lint-py PYTHON=python3/CC @nodejs/python
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes