internal Scope Execute(Scope globalScope, ScriptCode/*!*/ code) {
if (globalScope == null || code.LanguageContext != _context) {
if (globalScope == null) {
globalScope = code.CreateScope();
}
if (code.SourceUnit.Path != null) {
LoadedScripts[Platform.GetFullPath(code.SourceUnit.Path)] = globalScope;
}
code.Run(globalScope);
return globalScope;
} else {
code.Run(globalScope);
return null;
}
}