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 io.js@1.2.0:
$ 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
Reactions are currently unavailable
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 io.js@1.2.0:
$ 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