Skip to content

Change from 0.10 => 1.2; enumerable of this.escape in vm.runInNewContext was false, now true #864

Closed
@smikes

Description

@smikes

Here's the behavior from node 0.10:

$ node -p 'require("vm").runInNewContext("Object.getOwnPropertyDescriptor(this,\"escape\")", {})'
{ value: [Function: escape],
  writable: true,
  enumerable: false,
  configurable: true }

And in [email protected]:

$ nvm use 1.2
Now using io.js v1.2.0
$ node -p 'require("vm").runInNewContext("Object.getOwnPropertyDescriptor(this,\"escape\")", {})'
{ value: [Function: escape],
  writable: true,
  enumerable: true,
  configurable: true }

Is this an intentional change? Is it documented anywhere? FWIW this is present in node@0.11 as well

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