-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.
Description
I'm experiencing an issue with a following piece of code
'use strict';
const people = [
['John', 19, 'm'],
['Valentine', 28, 'f'],
['Christina', 25, 'f']
];
class Person {
get name() {
return this[0];
}
get age() {
return this[1];
}
get sex() {
return this[2];
}
}
people.forEach(person => Object.setPrototypeOf(person, Person.prototype));
const query = person => person.age > 25;
people.filter(query);
You can see a more detailed information about the stacktrace right below
- Node: v11.6.0:
- Platform: macOS Mojave Version 10.14.2:
goodwin64 and kumavis
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.