Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
- Version: v10.0.0
- Platform: Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64
To reproduce the problem, create the following js files:
- values.js
"use strict";Object.defineProperty(exports,"__esModule",{value: true});classX{}exports.X=X;- test.js
constx=require('./values.js');console.log(x);console.log(Object.values(x));- test1.js
constx=require('./values.js');console.log(Object.values(x));Now node test prints:
{X: [Function: X] } [] Interestingly, node test1 prints:
[ [Function: X] ] Please note Object.values(x) in test.js returns []. I expect it to print:
{X: [Function: X] } [ [Function: X] ] I tried Node 8.x, both test and test1 work as expected.
bricss and bajtos
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.