Skip to content

vm: constants is undefined #52716

Closed
Closed
@ShafSpecs

Description

@ShafSpecs

Version

22.0.0

Platform

Microsoft Windows NT 10.0.22631.0 x64

Subsystem

No response

What steps will reproduce the bug?

Import constants from node:vm. Log it, it returns undefined

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

constants is meant to return an object

What do you see instead?

undefined

Additional information

Was following along this issue: #51154
I wanted to be able to use import in my Script instance, and the constants are supposed to allow me use the default loader without flags, but the constants object is returning undefined. I am using

Metadata

Metadata

Assignees

No one assigned

    Labels

    vmIssues and PRs related to the vm subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions