Skip to content

filename option in vm.runInThisContext function argument disabled #2711

Closed
@freeneutron

Description

@freeneutron

This code:

  vm= require('vm');
  vm.runInThisContext('console.trace()',{filename:'vmTest'});

gives such a output:

  Trace
      at [object Object]:1:9

But docapi says:
filename: allows you to control the filename that shows up in any stack traces produced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that look for answers.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