Skip to content

Commit

Permalink
Added regression test for GH-353; closes GH-353
Browse files Browse the repository at this point in the history
  • Loading branch information
valueof committed Nov 27, 2011
1 parent ce7626a commit a8cebe3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/fixtures/undefstrict.js
@@ -0,0 +1,6 @@
function b() {
"use strict";
a();
}

function a() { }
5 changes: 5 additions & 0 deletions tests/options.js
Expand Up @@ -113,6 +113,11 @@ exports.latedefwundef = function () {
.test(src, { latedef: true, undef: true });
};

exports.undefwstrict = function () {
var src = fs.readFileSync(__dirname + '/fixtures/undefstrict.js', 'utf8');
TestRun().test(src, { undef: false });
};

/**
* The `proto` and `iterator` options allow you to prohibit the use of the
* special `__proto__` and `__iterator__` properties, respectively.
Expand Down

0 comments on commit a8cebe3

Please sign in to comment.