diff --git a/.jshintrc b/.jshintrc index 3ab350f54..d08a6e320 100644 --- a/.jshintrc +++ b/.jshintrc @@ -9,6 +9,7 @@ "quotmark": "single", "trailing": true, "curly": true, + "undef": true, // Relaxing "boss": true, diff --git a/src/pdf.js b/src/pdf.js index a16d2fa0d..694891ca3 100644 --- a/src/pdf.js +++ b/src/pdf.js @@ -15,6 +15,7 @@ * limitations under the License. */ /*jshint globalstrict: false */ +/* globals PDFJS */ // Initializing PDFJS global object (if still undefined) if (typeof PDFJS === 'undefined') { diff --git a/test/unit/testreporter.js b/test/unit/testreporter.js index d017ef5c5..98a49f5df 100644 --- a/test/unit/testreporter.js +++ b/test/unit/testreporter.js @@ -1,10 +1,10 @@ /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ -/*jshint globalstrict: false */ +/* globals SpecialPowers */ + +'use strict'; var TestReporter = function(browser, appPath) { - 'use strict'; - function send(action, json, cb) { var r = new XMLHttpRequest(); // (The POST URI is ignored atm.)