fix rogue useStrict transformer references
This commit is contained in:
parent
b7cb2bcb7b
commit
a65acd73ca
@ -1,4 +1,4 @@
|
||||
{
|
||||
"blacklist": "useStrict",
|
||||
"blacklist": "strict",
|
||||
"optional": "reactCompat"
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"blacklist": ["useStrict", "es6.tailCall"]
|
||||
"blacklist": ["strict", "es6.tailCall"]
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"blacklist": ["useStrict"]
|
||||
"blacklist": ["strict"]
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@ suite("kangax/compat-table", function () {
|
||||
test(key, function () {
|
||||
code = transform(code, {
|
||||
filename: key,
|
||||
blacklist: ["useStrict"],
|
||||
blacklist: ["strict"],
|
||||
optional: ["spec.typeofSymbol", "es6.blockScopingTDZ"]
|
||||
}).code;
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ var regeneratorLoc = __dirname + "/../vendor/regenerator";
|
||||
suite("regenerator", function () {
|
||||
setup(function () {
|
||||
require("../register")({
|
||||
blacklist: ["useStrict"],
|
||||
blacklist: ["strict"],
|
||||
experimental: true
|
||||
});
|
||||
});
|
||||
|
||||
@ -29,7 +29,7 @@ var check = function (loc) {
|
||||
|
||||
transform(file, {
|
||||
filename: loc,
|
||||
blacklist: ["useStrict"],
|
||||
blacklist: ["strict"],
|
||||
_anal: true
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
@ -86,6 +86,6 @@ require("./_transformation-helper")({
|
||||
experimental: true
|
||||
}, function (opts, task) {
|
||||
if (!_.contains(task.exec.loc, "module.js")) {
|
||||
opts.blacklist = ["useStrict"];
|
||||
opts.blacklist = ["strict"];
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user