@@ -14,15 +14,7 @@ module.exports = function( grunt ) {
1414
1515 var fs = require ( "fs" ) ,
1616 gzip = require ( "gzip-js" ) ,
17- isTravis = process . env . TRAVIS ,
18- oldNode = / ^ v 6 \. / . test ( process . version ) ;
19-
20- // Support: Node.js <8
21- // Skip running tasks that dropped support for Node.js 6
22- // in those Node versions.
23- function runIfNewNode ( task ) {
24- return oldNode ? "print_old_node_message:" + task : task ;
25- }
17+ isTravis = process . env . TRAVIS ;
2618
2719 if ( ! grunt . option ( "filename" ) ) {
2820 grunt . option ( "filename" , "jquery.js" ) ;
@@ -123,10 +115,9 @@ module.exports = function( grunt ) {
123115 testswarm : {
124116 tests : [
125117
126- // A special module with basic tests, meant for
127- // not fully supported environments like Android 2.3,
128- // jsdom or PhantomJS. We run it everywhere, though,
129- // to make sure tests are not broken.
118+ // A special module with basic tests, meant for not fully
119+ // supported environments like jsdom. We run it everywhere,
120+ // though, to make sure tests are not broken.
130121 "basic" ,
131122
132123 "ajax" ,
@@ -291,23 +282,13 @@ module.exports = function( grunt ) {
291282 "dist/<%= grunt.option('filename').replace('.js', '.min.map') %>" ,
292283 report : "min" ,
293284 output : {
294- "ascii_only" : true ,
295-
296- // Support: Android 4.0 only
297- // UglifyJS 3 breaks Android 4.0 if this option is not enabled.
298- // This is in lieu of setting ie8 for all of mangle, compress, and output
299- "ie8" : true
285+ "ascii_only" : true
300286 } ,
301287 banner : "/*! jQuery v<%= pkg.version %> | " +
302288 "(c) JS Foundation and other contributors | jquery.org/license */" ,
303289 compress : {
304290 "hoist_funs" : false ,
305- loops : false ,
306-
307- // Support: IE <11
308- // typeofs transformation is unsafe for IE9-10
309- // See https://github.com/mishoo/UglifyJS2/issues/2198
310- typeofs : false
291+ loops : false
311292 }
312293 }
313294 }
@@ -320,13 +301,6 @@ module.exports = function( grunt ) {
320301 // Integrate jQuery specific tasks
321302 grunt . loadTasks ( "build/tasks" ) ;
322303
323- // Support: Node.js <8
324- // Print a message on Node.js <8 notifying the task is skipped there.
325- grunt . registerTask ( "print_old_node_message" , function ( ) {
326- var task = [ ] . slice . call ( arguments ) . join ( ":" ) ;
327- grunt . log . writeln ( "Old Node.js detected, running the task \"" + task + "\" skipped..." ) ;
328- } ) ;
329-
330304 grunt . registerTask ( "lint" , [
331305 "jsonlint" ,
332306
@@ -349,10 +323,7 @@ module.exports = function( grunt ) {
349323 grunt . registerTask ( "test:fast" , "node_smoke_tests" ) ;
350324 grunt . registerTask ( "test:slow" , [
351325 "promises_aplus_tests" ,
352-
353- // Support: Node.js <8
354- // Karma no longer supports Node.js <8 as it relies on async-await internally.
355- runIfNewNode ( "karma:jsdom" )
326+ "karma:jsdom"
356327 ] ) ;
357328
358329 grunt . registerTask ( "test" , [
0 commit comments