mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
12 lines
333 B
JavaScript
12 lines
333 B
JavaScript
|
/* jshint node: true */
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
// Check if the object we got is the jQuery object by invoking a basic API.
|
||
|
module.exports = function ensureJQuery( jQuery ) {
|
||
|
if ( !/^jQuery/.test( jQuery.expando ) ) {
|
||
|
console.error( "jQuery.expando was not detected, the jQuery bootstrap process has failed" );
|
||
|
process.exit( 1 );
|
||
|
}
|
||
|
};
|