Skip to content

Commit

Permalink
Remove unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 8, 2015
1 parent 7eae13e commit f700fb0
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion es6-sham.js
Expand Up @@ -24,7 +24,7 @@
// Browser globals (root is window)
root.returnExports = factory();
}
}(this, function (undefined) {
}(this, function () {
'use strict';

/*jshint evil: true */
Expand Down
2 changes: 1 addition & 1 deletion test/browser-onload.js
Expand Up @@ -10,7 +10,7 @@ if (typeof window !== 'undefined') {
if (runner.stats.end) {
window.testsPassed = (runner.stats.failures === 0);
}
runner.on('pass', function (test) {
runner.on('pass', function () {
window.completedTests++;
});
runner.on('fail', function (test, err) {
Expand Down
2 changes: 1 addition & 1 deletion test/number.js
@@ -1,6 +1,6 @@
/*global describe, it, expect, require */

describe('Number', function (undefined) {
describe('Number', function () {
var integers = [5295, -5295, -9007199254740991, 9007199254740991, 0, -0];
var nonIntegers = [-9007199254741992, 9007199254741992, 5.9];
var infinities = [Infinity, -Infinity];
Expand Down
2 changes: 1 addition & 1 deletion test/object.js
@@ -1,6 +1,6 @@
/*global describe, it, expect, require */

describe('Object', function (undefined) {
describe('Object', function () {
(typeof process !== 'undefined' && process.env.NO_ES6_SHIM ? it.skip : it)('is on the exported object', function () {
var exported = require('../');
expect(exported.Object).to.equal(Object);
Expand Down
1 change: 0 additions & 1 deletion test/promise.js
@@ -1,7 +1,6 @@
/*global describe, it, expect, require, Promise */

/* This file is for testing implementation regressions of Promises. */
var hasOwn = Object.prototype.hasOwnProperty;

describe('Promise', function () {
(typeof process !== 'undefined' && process.env.NO_ES6_SHIM ? it.skip : it)('is on the exported object', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/promise/reject.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, setTimeout, assert, Promise */
/*global describe, it, expect, setTimeout, Promise */

var failIfThrows = function (done) {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion test/promise/resolve.js
@@ -1,4 +1,4 @@
/*global describe, it, expect, setTimeout, assert, Promise */
/*global describe, it, expect, setTimeout, Promise */

var failIfThrows = function (done) {
'use strict';
Expand Down
1 change: 0 additions & 1 deletion test/promise/simple.js
@@ -1,6 +1,5 @@
/*global describe, specify, assert, Promise */


var failIfThrows = function (done) {
'use strict';
return function (e) { done(e || new Error()); };
Expand Down
2 changes: 1 addition & 1 deletion test/promise/subclass.js
Expand Up @@ -57,7 +57,7 @@ describe('Support user subclassing of Promise', function () {
});

it("should throw if you don't inherit at all", function () {
var MyPromise = function (executor) { };
var MyPromise = function () {};
assert.throws(function () {
Promise.all.call(MyPromise, []);
}, TypeError);
Expand Down
4 changes: 2 additions & 2 deletions test/reflect.js
@@ -1,4 +1,4 @@
/*global describe, it, xit, expect, require, Reflect */
/*global describe, xdescribe, it, xit, expect, require, Reflect */

var arePropertyDescriptorsSupported = function () {
try {
Expand Down Expand Up @@ -407,7 +407,7 @@ describe('Reflect', function () {
var out;
target = Object.create({}, {
o: {
set: function (v) { out = this; }
set: function () { out = this; }
}
});

Expand Down
2 changes: 1 addition & 1 deletion test/regexp.js
@@ -1,4 +1,4 @@
/*global describe, it, xit, expect, require */
/*global beforeEach, describe, xdescribe, it, xit, expect, require */

var getRegexLiteral = function (stringRegex) {
try {
Expand Down
2 changes: 1 addition & 1 deletion test/worker-test.js
@@ -1,6 +1,6 @@
/*global describe, it, expect, Worker, location */

describe('Worker', function (undefined) {
describe('Worker', function () {
var workerErrorEventToError = function (errorEvent) {
var errorText = 'Error in Worker';
if (errorEvent.filename !== undefined) {
Expand Down

0 comments on commit f700fb0

Please sign in to comment.