8000 Function redefinition in vm.runInContext · Issue #548 · nodejs/node · GitHub
[go: up one dir, main page]

Skip to content
8000

Function redefinition in vm.runInContext #548

@kyriosli

Description

@kyriosli

Possible bug of iojs or perhaps v8?

    var vm = require('vm'), ctx = vm.createContext({});

    vm.runInContext('function test(){return 0}', ctx);
    vm.runInContext('function test(){return 1}', ctx);

    var result = vm.runInContext('test()', ctx);
    // returns 0 in io.js, but 1 in node.js

Tested under win7 x64 and linux.

Metadata

Metadata

Assignees

Labels

confirmed-bugIssues with confirmed bugs.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

    0