summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-01-13 11:05:09 -0500
committerMike Greiling <mike@pixelcog.com>2017-01-13 11:07:05 -0500
commit60339e044b0909e31e385bcc687f6bdf60b049b2 (patch)
tree94b73ee3e2e442a29a247c439574a54fa787e5ea
parent5bb258cd8fbc051aa65fca133578eb30761b5ca1 (diff)
downloadgitlab-ce-60339e044b0909e31e385bcc687f6bdf60b049b2.tar.gz
phantomJS requires "use strict" for polyfill to properly work
-rw-r--r--app/assets/javascripts/extensions/array.js.es65
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/extensions/array.js.es6 b/app/assets/javascripts/extensions/array.js.es6
index 717566a4715..8956e303488 100644
--- a/app/assets/javascripts/extensions/array.js.es6
+++ b/app/assets/javascripts/extensions/array.js.es6
@@ -1,4 +1,7 @@
-/* eslint-disable no-extend-native, func-names, space-before-function-paren, semi, space-infix-ops, max-len */
+/* eslint-disable no-extend-native, func-names, space-before-function-paren, semi, space-infix-ops, strict, max-len */
+
+'use strict';
+
Array.prototype.first = function() {
return this[0];
}