Merge pull request #259 from ethereum/use-strict-mode

Use Javascript strict mode
pull/1/head
Alex Beregszaszi 8 years ago committed by GitHub
commit eba357cc55
  1. 1
      background.js
  2. 1
      nightwatch.js
  3. 1
      src/app.js
  4. 2
      src/app/compiler-worker.js
  5. 2
      src/app/compiler.js
  6. 2
      src/app/debugger.js
  7. 1
      src/app/editor.js
  8. 1
      src/app/execution-context.js
  9. 2
      src/app/formalVerification.js
  10. 2
      src/app/gist-handler.js
  11. 2
      src/app/query-params.js
  12. 2
      src/app/renderer.js
  13. 1
      src/app/storage.js
  14. 2
      src/app/ui-helper.js
  15. 2
      src/app/utils.js
  16. 2
      src/index.js
  17. 1
      src/lib/eventManager.js
  18. 1
      src/universal-dapp.js
  19. 2
      test-browser/debugger.js
  20. 2
      test-browser/new-file-test.js
  21. 2
      test-browser/smoke-test.js
  22. 2
      test/compiler-test.js
  23. 2
      test/gist-handler-test.js
  24. 2
      test/index.js
  25. 2
      test/query-params-test.js

@ -1,4 +1,5 @@
/* global chrome */ /* global chrome */
'use strict';
chrome.browserAction.onClicked.addListener(function (tab) { chrome.browserAction.onClicked.addListener(function (tab) {
chrome.storage.sync.set({ 'chrome-app-sync': true }); chrome.storage.sync.set({ 'chrome-app-sync': true });

@ -1,4 +1,5 @@
'use strict' 'use strict'
var TRAVIS_JOB_NUMBER = process.env.TRAVIS_JOB_NUMBER var TRAVIS_JOB_NUMBER = process.env.TRAVIS_JOB_NUMBER
module.exports = { module.exports = {

@ -1,4 +1,5 @@
/* global alert, confirm, prompt, Option, Worker */ /* global alert, confirm, prompt, Option, Worker */
'use strict';
var $ = require('jquery'); var $ = require('jquery');
var semver = require('semver'); var semver = require('semver');

@ -1,3 +1,5 @@
'use strict';
var solc = require('solc/wrapper'); var solc = require('solc/wrapper');
var compileJSON = function () { return ''; }; var compileJSON = function () { return ''; };

@ -1,3 +1,5 @@
'use strict';
var solc = require('solc/wrapper'); var solc = require('solc/wrapper');
var webworkify = require('webworkify'); var webworkify = require('webworkify');

@ -1,3 +1,5 @@
'use strict';
var remix = require('ethereum-remix'); var remix = require('ethereum-remix');
var utils = require('./utils'); var utils = require('./utils');
var ace = require('brace'); var ace = require('brace');

@ -1,4 +1,5 @@
/* global BALLOT_EXAMPLE, FileReader */ /* global BALLOT_EXAMPLE, FileReader */
'use strict';
var utils = require('./utils'); var utils = require('./utils');

@ -1,4 +1,5 @@
/* global confirm */ /* global confirm */
'use strict';
var $ = require('jquery'); var $ = require('jquery');
var Web3 = require('web3'); var Web3 = require('web3');

@ -1,3 +1,5 @@
'use strict';
var $ = require('jquery'); var $ = require('jquery');
var EventManager = require('../lib/eventManager'); var EventManager = require('../lib/eventManager');

@ -1,3 +1,5 @@
'use strict';
// Allowing window to be overriden for testing // Allowing window to be overriden for testing
function GistHandler (_window) { function GistHandler (_window) {
if (_window === undefined) _window = window; if (_window === undefined) _window = window;

@ -1,3 +1,5 @@
'use strict';
// Allowing window to be overriden for testing // Allowing window to be overriden for testing
function QueryParams (_window) { function QueryParams (_window) {
if (_window === undefined) _window = window; if (_window === undefined) _window = window;

@ -1,3 +1,5 @@
'use strict';
var $ = require('jquery'); var $ = require('jquery');
var utils = require('./utils'); var utils = require('./utils');

@ -1,4 +1,5 @@
/* global chrome, confirm */ /* global chrome, confirm */
'use strict';
var utils = require('./utils'); var utils = require('./utils');

@ -1,3 +1,5 @@
'use strict';
var $ = require('jquery'); var $ = require('jquery');
module.exports = { module.exports = {

@ -1,3 +1,5 @@
'use strict';
var SOL_CACHE_FILE_PREFIX = 'sol-cache-file-'; var SOL_CACHE_FILE_PREFIX = 'sol-cache-file-';
function getCacheFilePrefix () { function getCacheFilePrefix () {

@ -1,3 +1,5 @@
'use strict';
require('es6-shim'); require('es6-shim');
var app = require('./app.js'); var app = require('./app.js');
var $ = require('jquery'); var $ = require('jquery');

@ -1,4 +1,5 @@
'use strict'; 'use strict';
function eventManager () { function eventManager () {
this.registered = {}; this.registered = {};
} }

@ -1,4 +1,5 @@
/* global prompt */ /* global prompt */
'use strict';
var $ = require('jquery'); var $ = require('jquery');
var ethJSUtil = require('ethereumjs-util'); var ethJSUtil = require('ethereumjs-util');

@ -1,3 +1,5 @@
'use strict';
module.exports = { module.exports = {
'Debugger Render': function (browser) { 'Debugger Render': function (browser) {
browser browser

@ -1,3 +1,5 @@
'use strict';
module.exports = { module.exports = {
'New file test': function (browser) { 'New file test': function (browser) {
browser browser

@ -1,3 +1,5 @@
'use strict';
module.exports = { module.exports = {
'Smoke test': function (browser) { 'Smoke test': function (browser) {
browser browser

@ -1,3 +1,5 @@
'use strict';
var test = require('tape'); var test = require('tape');
var Compiler = require('../src/app/compiler'); var Compiler = require('../src/app/compiler');

@ -1,3 +1,5 @@
'use strict';
var test = require('tape'); var test = require('tape');
var GistHandler = require('../src/app/gist-handler'); var GistHandler = require('../src/app/gist-handler');

@ -1,3 +1,5 @@
'use strict';
require('./compiler-test'); require('./compiler-test');
require('./gist-handler-test'); require('./gist-handler-test');
require('./query-params-test'); require('./query-params-test');

@ -1,3 +1,5 @@
'use strict';
var test = require('tape'); var test = require('tape');
var QueryParams = require('../src/app/query-params'); var QueryParams = require('../src/app/query-params');

Loading…
Cancel
Save