From a65acd73cabcb67f7f3a6077b32efef2ba401e02 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 2 Mar 2015 22:41:55 +1100 Subject: [PATCH] fix rogue useStrict transformer references --- test/fixtures/transformation/react-compat/options.json | 2 +- test/fixtures/transformation/react/arrow-functions/options.json | 2 +- test/fixtures/transformation/react/options.json | 2 +- test/kangax.js | 2 +- test/regenerator.js | 2 +- test/test262.js | 2 +- test/traceur.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/fixtures/transformation/react-compat/options.json b/test/fixtures/transformation/react-compat/options.json index 061424d050..c5c0827325 100644 --- a/test/fixtures/transformation/react-compat/options.json +++ b/test/fixtures/transformation/react-compat/options.json @@ -1,4 +1,4 @@ { - "blacklist": "useStrict", + "blacklist": "strict", "optional": "reactCompat" } diff --git a/test/fixtures/transformation/react/arrow-functions/options.json b/test/fixtures/transformation/react/arrow-functions/options.json index d27c59a46a..1e53328fc6 100644 --- a/test/fixtures/transformation/react/arrow-functions/options.json +++ b/test/fixtures/transformation/react/arrow-functions/options.json @@ -1,3 +1,3 @@ { - "blacklist": ["useStrict", "es6.tailCall"] + "blacklist": ["strict", "es6.tailCall"] } diff --git a/test/fixtures/transformation/react/options.json b/test/fixtures/transformation/react/options.json index a5a58b5836..b9dd7b83b7 100644 --- a/test/fixtures/transformation/react/options.json +++ b/test/fixtures/transformation/react/options.json @@ -1,3 +1,3 @@ { - "blacklist": ["useStrict"] + "blacklist": ["strict"] } diff --git a/test/kangax.js b/test/kangax.js index 878d6dd062..4cc0aeb732 100644 --- a/test/kangax.js +++ b/test/kangax.js @@ -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; diff --git a/test/regenerator.js b/test/regenerator.js index 54aba708ae..0dda230309 100644 --- a/test/regenerator.js +++ b/test/regenerator.js @@ -11,7 +11,7 @@ var regeneratorLoc = __dirname + "/../vendor/regenerator"; suite("regenerator", function () { setup(function () { require("../register")({ - blacklist: ["useStrict"], + blacklist: ["strict"], experimental: true }); }); diff --git a/test/test262.js b/test/test262.js index ca6c0a8c8c..ae7ab5e25c 100644 --- a/test/test262.js +++ b/test/test262.js @@ -29,7 +29,7 @@ var check = function (loc) { transform(file, { filename: loc, - blacklist: ["useStrict"], + blacklist: ["strict"], _anal: true }); } catch (err) { diff --git a/test/traceur.js b/test/traceur.js index 4bfb1c318b..763bd8bf33 100644 --- a/test/traceur.js +++ b/test/traceur.js @@ -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"]; } });