Skip to content
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

deps: add back no-op harmony shipping flags #8445

Merged
merged 1 commit into from
Sep 13, 2016

Conversation

ofrobots
Copy link
Contributor

@ofrobots ofrobots commented Sep 8, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

deps:v8

Description of change

This PR adds back the shipping harmony flags (i.e. no-ops) that were removed in V8 5.1. While uses of V8 flags is generally not supported by Node, in this case a trivial change reduces minor hardship in the ecosystem by adding back these flags (and making them do nothing).

Fixes: #8388
Ref: #8395
R=@nodejs/v8
EDIT: CI: https://ci.nodejs.org/job/node-test-pull-request/3967/
CI: https://ci.nodejs.org/job/node-test-pull-request/4033/
V8-CI: https://ci.nodejs.org/view/All/job/node-test-commit-v8-linux/310/

@nodejs-github-bot nodejs-github-bot added v6.x v8 engine Issues and PRs related to the V8 dependency. labels Sep 8, 2016
@addaleax
Copy link
Member

addaleax commented Sep 8, 2016

LGTM pending green CIs… thanks for putting this together!

@MylesBorins
Copy link
Contributor

LGTM

tested locally to confirm that the noop flags work as expected

@ofrobots
Copy link
Contributor Author

ofrobots commented Sep 8, 2016

Note that I have not added back the --harmony_modules flag. It was removed in V8 5.1, but it was not a 'shipping', but rather an 'in progress' feature. Since modules require embedder support anyway, I don't think much, if anything, is dependent on that flag.

@jasnell
Copy link
Member

jasnell commented Sep 8, 2016

This LGTM for v6, but I want to make sure it's absolutely clear that these won't be in v7. We should likely have a documented policy that V8 flags removed within a major would only be noop'ed in that major, and removed completely in the next major.

@evanlucas
Copy link
Contributor

LGTM. Thanks @ofrobots!

@ofrobots
Copy link
Contributor Author

ofrobots commented Sep 8, 2016

We should likely have a documented policy that V8 flags removed within a major would only be noop'ed in that major, and removed completely in the next major.

I think our policy should be that use of V8 flags is not supported. This is a one-off change, and not intended to set precedent that we want to be playing with V8 flags.

@ofrobots
Copy link
Contributor Author

@bnoordhuis you had left a -1 on #8395 on the idea of floating a patch. Would you be okay with this change?

@targos
Copy link
Member

targos commented Sep 12, 2016

LGTM

@bnoordhuis
Copy link
Member

A grumbling LGTM.

@ofrobots ofrobots force-pushed the harmony-nops branch 2 times, most recently from ddc0b48 to 004f2ed Compare September 13, 2016 23:24
Add back the no-op harmony shipping flags that were removed in V8 5.1
to increase compatibility with V8 5.0 that we had been shipping before
v6.5.0. These flags do nothing.

Fixes: nodejs#8388
Ref: nodejs#8395
PR-URL: nodejs#8445
Reviewed-By: addaleax - Anna Henningsen <anna@addaleax.net>
Reviewed-By: thealphanerd - Myles Borins <myles.borins@gmail.com>
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: evanlucas - Evan Lucas <evanlucas@me.com>
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
@ofrobots ofrobots merged commit 9c460d7 into nodejs:v6.x-staging Sep 13, 2016
@ofrobots
Copy link
Contributor Author

Thanks. Landed on v6.x-staging as 9c460d7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 engine Issues and PRs related to the V8 dependency.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants