GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: disable harmony classes by bnoordhuis · Pull Request #272 · nodejs/node

Conversation

@bnoordhuis

@bnoordhuis bnoordhuis commented Jan 9, 2015

Copy link
Copy Markdown
Member

The V8 development branch has unshipped ES6 classes pending resolution
of a number of inheritance edge cases. Disable classes in io.js for
the sake of feature parity.

See #251 for background and
discussion.

R=@iojs/tc

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bnoordhuis bnoordhuis mentioned this pull request Jan 9, 2015
The state of ES6 on io.js #251
Closed
@cjihrig

cjihrig commented Jan 9, 2015

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Fishrock123
Fishrock123 reviewed Jan 9, 2015
View reviewed changes
Comment thread test/parallel/test-v8-features.js

@Fishrock123 Fishrock123 Jan 9, 2015

Copy link
Copy Markdown
Contributor

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.

afaik let and const are included under another patch, is there a really good reason to have them here? (Also, I thought those worked without strict?)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@bnoordhuis bnoordhuis Jan 9, 2015

Copy link
Copy Markdown
Member Author

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.

--harmony_classes implies --harmony_scoping. The check is to ensure that the the latter is still on. I believe let/const in sloppy mode is still under development.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bnoordhuis

bnoordhuis commented Jan 9, 2015

Copy link
Copy Markdown
Member Author

I've added some comments to clarify the --harmony_classes/--harmony_scoping relationship and added another check. Can I have one more LGTM?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@domenic

domenic commented Jan 9, 2015

Copy link
Copy Markdown
Contributor

--harmony_object_literals behavior will be changing too. That should be disabled.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis

bnoordhuis commented Jan 9, 2015

Copy link
Copy Markdown
Member Author

@domenic What's the change and where was it announced? I didn't see anything on v8-dev.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@domenic

domenic commented Jan 9, 2015

Copy link
Copy Markdown
Contributor

harmony_object_literals is part of the classes implementation, which is why there's a dependency and why V8 unstaged them all together.

In particular, there are changes to super(), toMethod, and the resulting changes for concise methods in object literals. (There's also some non-public (ugh) discussion of an unrelated bug in the concise method implementation.)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@domenic

domenic commented Jan 9, 2015

Copy link
Copy Markdown
Contributor

In general, the fact that V8 unshipped both classes and object literal extensions in v8/v8@a417b41 should be taken as a loss of confidence in their implementation and I'd encourage iojs to follow those kinds of signals.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis
bnoordhuis force-pushed the disable-es6-classes branch from 3af4281 to b53b328 Compare January 9, 2015 16:05
@bnoordhuis
bnoordhuis force-pushed the disable-es6-classes branch from b53b328 to 0e1850a Compare January 9, 2015 16:06
@bnoordhuis

bnoordhuis commented Jan 9, 2015

Copy link
Copy Markdown
Member Author

Okay, I added a second commit that disables object literals. @domenic et al, PTAL.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@domenic

domenic commented Jan 9, 2015

Copy link
Copy Markdown
Contributor

LGTM, although as discussed in #251 my preferred approach would be to ship V8 3.30.33.14.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis added 2 commits January 9, 2015 20:56
@bnoordhuis
src: disable harmony classes
a2751e3
The V8 development branch has unshipped ES6 classes pending resolution
of a number of inheritance edge cases.  Disable classes in io.js for
the sake of feature parity.

See nodejs#251 for background and
discussion.

PR-URL: nodejs#272
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Domenic Denicola <[email protected]>
@bnoordhuis
src: disable harmony object literals
4e58211
Per the discussion in nodejs#272, upstream
V8 has disabled Harmony object literals for the time being.  Do the
same for feature parity.

PR-URL: nodejs#272
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Domenic Denicola <[email protected]>
@bnoordhuis

bnoordhuis commented Jan 9, 2015

Copy link
Copy Markdown
Member Author

@domenic Noted. I'll land this and I'll bring it up at the go/no go release meeting. Reverting the V8 upgrade is the work of minutes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis
bnoordhuis force-pushed the disable-es6-classes branch from 0e1850a to 4e58211 Compare January 9, 2015 19:59
@bnoordhuis
bnoordhuis merged commit 4e58211 into nodejs:v1.x Jan 9, 2015
@bnoordhuis
bnoordhuis deleted the disable-es6-classes branch January 9, 2015 19:59
@snyk-bot snyk-bot mentioned this pull request Nov 10, 2021
[Snyk] Upgrade remark-preset-lint-node from 3.0.1 to 3.3.0 thisguy726/node#3
Open
@aliscco aliscco mentioned this pull request Apr 25, 2023
[Snyk] Fix for 9 vulnerabilities aliscco/alisco-node#175
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@bnoordhuis @cjihrig @domenic @Fishrock123
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.