Re: [v8-users] Creating a sub-context

2017-07-11 Thread Ben Noordhuis
On Sat, Jul 8, 2017 at 4:31 PM, Florent S. wrote: > Hi everyone! > > I'm looking for a way to create a sub-context, that is a context that > inherit from another context. > > The goal is to simulate the import feature. > > 1/ Create a global context > 2/ Load and excute main script > 3/ import cre

[v8-users] Creating a sub-context

2017-07-08 Thread Florent S.
Hi everyone! I'm looking for a way to create a sub-context, that is a context that inherit from another context. The goal is to simulate the import feature. 1/ Create a global context 2/ Load and excute main script 3/ import creates a sub-context 4/ Load and execute the imported script in the s