function returnValues( section ) {
		var examples;
		var expected;
		var current;
		var pkgName;
		var actual;
		var match;
		var scope;
		var code;
		var msg;
		var pkg;
		var out;
		var key;
		var N;
		var o;
		var a;
		var b;
		var i;

		// FIXME: clean-up this logic

		if ( context.meta.filepath ) {
			expected = [];
			actual = [];
			pkg = dirname( dirname( context.meta.filepath ) );

			scope = {
				'setTimeout': setTimeout,
				'require': require
			};
			pkgName = pkg2alias( pkg ) || 'ALIAS';

			// TODO: use @stdlib/utils/deep-set once refactored!
			pkgName = pkgName.split( '.' );
			N = pkgName.length;
			o = scope;
			for ( i = 0; i < N; i++ ) {
				key = pkgName[ i ];
				if ( i < N-1 ) {
					if ( !hasOwnProp( o, key ) ) {
						o[ key ] = {};
					}
					o = o[ key ];
				} else {
					o[ key ] = require( pkg ); // eslint-disable-line stdlib/no-dynamic-require
				}
			}
			// TODO: process external aliases *BEFORE* creating the context (and also, what is going on here, given that the return value is ignored?)
			vm.createContext( scope );

			examples = section.examples;
			for ( i = 0; i < examples.length; i++ ) {
				current = examples[ i ];
				code = current.code;
				code = replace( code, '{{alias}}', pkgName.join( '.' ) );
				code = replace( code, RE_EXTERNAL_ALIAS, replaceAliases );
				try {
					out = vm.runInContext( code, scope );
					if ( current.output ) {
						expected.push( current.output );
						match = code.match( RE_ASSIGNMENT );
						if ( match && match[ 1 ] ) {
							actual.push( scope[ match[ 1 ] ] );
						} else {
							actual.push( out );
						}
					}
				} catch ( err ) {
					if ( current.output !== '<Error>' ) {
						context.report( 'Received an unexpected error when running example `'+code+'`: ' + err.message, section );
					}
				}
			}
			for ( i = 0; i < expected.length; i++ ) {
				a = actual[ i ];
				b = expected[ i ];
				msg = compareValues( a, b );
				if ( msg ) {
					context.report( msg, section );
				}
			}
		}

		/**
		* Replaces aliases to other packages in REPL example code and registers the respective packages in the runtime context.
		*
		* @private
		* @param {string} match - full match
		* @param {string} pkg - package path
		* @returns {string} variable name
		*/
		function replaceAliases( match, pkg ) {
			var alias;
			var key;
			var len;
			var o;
			var i;

			alias = pkg2alias( pkg );
			alias = alias.split( '.' );
			len = alias.length;

			// TODO: use @stdlib/utils/deep-set once refactored!
			o = scope;
			for ( i = 0; i < len; i++ ) {
				key = alias[ i ];
				if ( i < len-1 ) {
					if ( !hasOwnProp( o, key ) ) {
						o[ key ] = {};
					}
					o = o[ key ];
				} else {
					o[ key ] = require( pkg ); // eslint-disable-line stdlib/no-dynamic-require
				}
			}
			return alias.join( '.' );
		}
	}
Checks whether return annotation values mirror actual output.

@private
@param {Object} section - examples section