function setCommandsGlobal( out, context, commands ) {
	var cmd;
	var i;

	for ( i = 0; i < commands.length; i++ ) {
		cmd = commands[ i ];
		if ( hasOwnProp( context, cmd[ 0 ] ) ) {
			debug( 'Skipping command as global context property `'+cmd[0]+'` is already assigned.' );
		} else {
			out.push( cmd[ 0 ] );
			if ( cmd[ 2 ] ) {
				setConfigurableReadOnlyAccessor( context, cmd[ 0 ], cmd[ 1 ] );
			} else {
				setConfigurableReadOnly( context, cmd[ 0 ], cmd[ 1 ] );
			}
		}
	}
	return context;
}
Sets commands on non-sandboxed `context` object.

## Notes

-   This function avoids overwriting properties in a non-sandboxed environment in order to avoid unintended side-effects.

@private
@param {Array} out - output array for storing a list of global variables added to the global namespace
@param {Object} context - context object
@param {ArrayArray} commands - commands
@returns {Object} context object