Skip to content

Script.createContext is undefined in node 0.11.9 #3498

Closed
@chrisyip

Description

@chrisyip

I noticed that node had move Script.createContext to vm.createContext (http://nodejs.org/api/vm.html#vm_vm_createcontext_initsandbox).

I wonder if it's acceptable to use something like

var createContext = Script.createContext || vm.createContext;

to make it compatible with older and newer versions of node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions