/// <exception cref="TjsException"></exception> public virtual void LoadByteCode(Variant result, Dispatch2 context, string name, BinaryStream input) { var loader = new TjsByteCodeLoader(); ScriptBlock block = loader.ReadByteCode(this, name, input); block.ExecuteTopLevel(result, context); if (block.GetContextCount() == 0) { RemoveScriptBlock(block); } block = null; }