function compile( filename, code ) {
	var script;
	var opts;

	// Wrap the source code similar to `require`:
	code = wrap( code );

	// Compile the source code:
	opts = {
		'filename': filename,
		'lineOffset': 0
	};
	script = new vm.Script( code, opts );

	// Run the compiled code in the current V8 context to generate a wrapped function:
	opts = {
		'displayErrors': true
	};
	return script.runInThisContext( opts );
}
Compiles JavaScript source code.

@private
@param {string} filename - filename to associate with compiled source code
@param {string} code - code to compile
@returns {Function} compiled source code wrapped within a function