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

test: add known_issues test for #2734 #10322

Closed
wants to merge 1 commit into from

Conversation

AnnaMag
Copy link
Member

@AnnaMag AnnaMag commented Dec 18, 2016

  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

tests

Description of change

A test addressing #2734
accessor properties get converted to data properties inside the vm
is added to the known_issues directory.
It will be fixed with the 5.5 V8 API changes

@nodejs-github-bot nodejs-github-bot added test Issues and PRs related to the tests. lts-watch-v6.x labels Dec 18, 2016
@AnnaMag
Copy link
Member Author

AnnaMag commented Dec 18, 2016

cc/ @fhinkel

@mscdex mscdex added the vm Issues and PRs related to the vm subsystem. label Dec 18, 2016
const sandbox = Object.create(null, {
prop: {
get: function() { return 'foo';}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do getter literals exists yet?

Can you do get prop () { ... }? If not you could drop the function and still use a object literal function e.g. get () { ... }.

Copy link
Member Author

@AnnaMag AnnaMag Dec 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create
with the Object.create/defineProperty(-ies) syntax it seems to be the standard.... am I missing something?

Copy link
Member Author

@AnnaMag AnnaMag Dec 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the above gives the same object as

const sandbox = {};
Object.defineProperty(sandbox, 'prop', {
  get() {
    return 'foo';
  }
});

@AnnaMag
Copy link
Member Author

AnnaMag commented Dec 18, 2016

@AnnaMag AnnaMag closed this Dec 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests. vm Issues and PRs related to the vm subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants