From f7267dbcde9ac546af9a8be6fa8c21ebf20e205a Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 26 Oct 2016 00:29:38 +0100 Subject: [PATCH] Add use strict to the places missing it --- ci/makeMockCompiler.js | 2 ++ ci/sauceDisconnect.js | 2 ++ src/app/example-contracts.js | 2 ++ test-browser/helpers/contracts.js | 2 ++ test-browser/mockcompiler/compiler.js | 2 ++ test-browser/mockcompiler/requests.js | 2 ++ test-browser/tests/ballot.js | 1 + test-browser/tests/simpleContract.js | 1 + 8 files changed, 14 insertions(+) diff --git a/ci/makeMockCompiler.js b/ci/makeMockCompiler.js index d409127b68..e1a9014b21 100644 --- a/ci/makeMockCompiler.js +++ b/ci/makeMockCompiler.js @@ -1,3 +1,5 @@ +'use strict' + var fs = require('fs') var solc = require('solc/wrapper') var soljson = require('../soljson') diff --git a/ci/sauceDisconnect.js b/ci/sauceDisconnect.js index b29328db5c..4490a58638 100644 --- a/ci/sauceDisconnect.js +++ b/ci/sauceDisconnect.js @@ -1,3 +1,5 @@ +'use strict' + const https = require('https') var userName = process.argv[2] diff --git a/src/app/example-contracts.js b/src/app/example-contracts.js index b41bf5770c..ac5a9dbf06 100644 --- a/src/app/example-contracts.js +++ b/src/app/example-contracts.js @@ -1,3 +1,5 @@ +'use strict' + var ballot = `pragma solidity ^0.4.0 contract Ballot { diff --git a/test-browser/helpers/contracts.js b/test-browser/helpers/contracts.js index 0f19b29af2..fea2d475d2 100644 --- a/test-browser/helpers/contracts.js +++ b/test-browser/helpers/contracts.js @@ -1,3 +1,5 @@ +'use strict' + module.exports = { checkCompiledContracts: function (browser, compiled, callback) { browser.execute(function () { diff --git a/test-browser/mockcompiler/compiler.js b/test-browser/mockcompiler/compiler.js index 664a06f88c..0d30201796 100644 --- a/test-browser/mockcompiler/compiler.js +++ b/test-browser/mockcompiler/compiler.js @@ -1,3 +1,5 @@ +'use strict' + var Module = { // eslint-disable-line cwrap: function () { return arguments[0] === 'version' ? version : compile }, writeStringToMemory: function () {}, diff --git a/test-browser/mockcompiler/requests.js b/test-browser/mockcompiler/requests.js index 4c0a72558c..40997e5e3a 100644 --- a/test-browser/mockcompiler/requests.js +++ b/test-browser/mockcompiler/requests.js @@ -1,3 +1,5 @@ +'use strict' + module.exports = { 'testSimpleContract': { 'sources': { diff --git a/test-browser/tests/ballot.js b/test-browser/tests/ballot.js index b96f71a4ad..3985b367e2 100644 --- a/test-browser/tests/ballot.js +++ b/test-browser/tests/ballot.js @@ -1,4 +1,5 @@ 'use strict' + var testData = require('../mockcompiler/requests') // var contractHelper = require('../helpers/contracts') diff --git a/test-browser/tests/simpleContract.js b/test-browser/tests/simpleContract.js index 6998c264a4..cb7d126b81 100644 --- a/test-browser/tests/simpleContract.js +++ b/test-browser/tests/simpleContract.js @@ -1,4 +1,5 @@ 'use strict' + var testData = require('../mockcompiler/requests') var contractHelper = require('../helpers/contracts')