fix rogue useStrict transformer references
This commit is contained in:
parent
b7cb2bcb7b
commit
a65acd73ca
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"blacklist": "useStrict",
|
"blacklist": "strict",
|
||||||
"optional": "reactCompat"
|
"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 () {
|
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;
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -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"];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user