fix rogue useStrict transformer references

This commit is contained in:
Sebastian McKenzie 2015-03-02 22:41:55 +11:00
parent b7cb2bcb7b
commit a65acd73ca
7 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
{ {
"blacklist": "useStrict", "blacklist": "strict",
"optional": "reactCompat" "optional": "reactCompat"
} }

View File

@ -1,3 +1,3 @@
{ {
"blacklist": ["useStrict", "es6.tailCall"] "blacklist": ["strict", "es6.tailCall"]
} }

View File

@ -1,3 +1,3 @@
{ {
"blacklist": ["useStrict"] "blacklist": ["strict"]
} }

View File

@ -47,7 +47,7 @@ suite("kangax/compat-table", function () {
test(key, function () { test(key, function () {
code = transform(code, { code = transform(code, {
filename: key, filename: key,
blacklist: ["useStrict"], blacklist: ["strict"],
optional: ["spec.typeofSymbol", "es6.blockScopingTDZ"] optional: ["spec.typeofSymbol", "es6.blockScopingTDZ"]
}).code; }).code;

View File

@ -11,7 +11,7 @@ var regeneratorLoc = __dirname + "/../vendor/regenerator";
suite("regenerator", function () { suite("regenerator", function () {
setup(function () { setup(function () {
require("../register")({ require("../register")({
blacklist: ["useStrict"], blacklist: ["strict"],
experimental: true experimental: true
}); });
}); });

View File

@ -29,7 +29,7 @@ var check = function (loc) {
transform(file, { transform(file, {
filename: loc, filename: loc,
blacklist: ["useStrict"], blacklist: ["strict"],
_anal: true _anal: true
}); });
} catch (err) { } catch (err) {

View File

@ -86,6 +86,6 @@ require("./_transformation-helper")({
experimental: true experimental: true
}, function (opts, task) { }, function (opts, task) {
if (!_.contains(task.exec.loc, "module.js")) { if (!_.contains(task.exec.loc, "module.js")) {
opts.blacklist = ["useStrict"]; opts.blacklist = ["strict"];
} }
}); });