split up es3.xLiterals transformers - fixes #1415

This commit is contained in:
Sebastian McKenzie
2015-05-01 23:13:30 +01:00
parent c28415c38a
commit 90a1c81d30
22 changed files with 90 additions and 172 deletions

View File

@@ -1,6 +1,4 @@
obj["x"] = 2;
test.catch;
test.catch["foo"];
test.catch.foo;
test["catch"];
test["catch"]["foo"];
test["catch"].foo;

View File

@@ -1,7 +1,5 @@
"use strict";
obj.x = 2;
test["catch"];
test["catch"].foo;
test["catch"];

View File

@@ -1,7 +1,7 @@
"use strict";
var obj = {
test: "foob",
"test": "foob",
"!@#$": "foob",
"33rd": "foob",
fooBar: "foob"

View File

@@ -2,4 +2,4 @@
var _obj;
var obj = (_obj = {}, _obj.first = "first", _obj.second = "second", _obj);
var obj = (_obj = {}, _obj.first = "first", _obj["second"] = "second", _obj);

View File

@@ -1,5 +1,3 @@
"use strict";
var _foo;
var foo = (_foo = {}, _foo[Symbol.iterator] = "foobar", _foo);
var foo = babelHelpers.defineProperty({}, Symbol.iterator, "foobar");

View File

@@ -0,0 +1,2 @@
foo["default"];
foo["import"];

View File

@@ -0,0 +1,4 @@
"use strict";
foo["default"];
foo["import"];

View File

@@ -0,0 +1,3 @@
{
"optional": ["minification.memberExpressionLiterals"]
}

View File

@@ -0,0 +1,4 @@
foo["bar"];
foo["foo"];
foo.bar;
foo.foo;

View File

@@ -0,0 +1,6 @@
"use strict";
foo.bar;
foo.foo;
foo.bar;
foo.foo;

View File

@@ -0,0 +1,4 @@
({
"default": null,
"import": null
});

View File

@@ -0,0 +1,6 @@
"use strict";
({
"default": null,
"import": null
});

View File

@@ -0,0 +1,3 @@
{
"optional": ["minification.propertyLiterals"]
}

View File

@@ -0,0 +1,4 @@
var obj = {
foo: "foo",
"bar": "bar"
};

View File

@@ -0,0 +1,6 @@
"use strict";
var obj = {
foo: "foo",
bar: "bar"
};