Skip to content

Commit

Permalink
Don't try to declare a var called "undefined"
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 15, 2014
1 parent 43e1b9c commit dcfb10d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions test/number.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
describe('Number', function () {
var undefined;
describe('Number', function (undefined) {
var integers = [5295, -5295, -9007199254740991, 9007199254740991, 0, -0];
var nonIntegers = [-9007199254741992, 9007199254741992, 5.9];
var infinities = [Infinity, -Infinity];
Expand Down
4 changes: 1 addition & 3 deletions test/object.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
describe('Object', function () {
var undefined;

describe('Object', function (undefined) {
describe('Object.keys()', function () {
it('works on strings', function () {
expect(Object.keys('foo')).to.eql(['0', '1', '2']);
Expand Down
5 changes: 2 additions & 3 deletions test/worker-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
describe('Worker', function () {
var undefined,
workerErrorEventToError = function (errorEvent) {
describe('Worker', function (undefined) {
var workerErrorEventToError = function (errorEvent) {
var errorText = "Error in Worker";
if (errorEvent.filename !== undefined) {
errorText += " " + errorEvent.filename;
Expand Down

0 comments on commit dcfb10d

Please sign in to comment.