add support for call expression abstract references and more versatile tests
This commit is contained in:
2
test/fixtures/transformation/es7-abstract-references/call/actual.js
vendored
Normal file
2
test/fixtures/transformation/es7-abstract-references/call/actual.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
foo::bar();
|
||||
foo::bar("arg");
|
||||
4
test/fixtures/transformation/es7-abstract-references/call/expected.js
vendored
Normal file
4
test/fixtures/transformation/es7-abstract-references/call/expected.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
|
||||
bar[Symbol.referenceGet](foo).call(foo);
|
||||
bar[Symbol.referenceGet](foo).call(foo, "arg");
|
||||
@@ -1 +1,3 @@
|
||||
delete foo::bar;
|
||||
|
||||
if (delete foo::bar);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
bar[Symbol.referenceDelete](foo);
|
||||
|
||||
if ((bar[Symbol.referenceDelete](foo), true)) ;
|
||||
|
||||
3
test/fixtures/transformation/es7-abstract-references/options.json
vendored
Normal file
3
test/fixtures/transformation/es7-abstract-references/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"experimental": true
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
foo::bar = baz;
|
||||
if (foo::bar = baz);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
|
||||
bar[Symbol.referenceSet](foo, baz);
|
||||
if ((bar[Symbol.referenceSet](foo, baz), baz)) ;
|
||||
|
||||
Reference in New Issue
Block a user