add exponentiation operator
This commit is contained in:
1
test/fixtures/transformation/es7-exponentian-operator/assignment/actual.js
vendored
Normal file
1
test/fixtures/transformation/es7-exponentian-operator/assignment/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
num **= 2;
|
||||
3
test/fixtures/transformation/es7-exponentian-operator/assignment/expected.js
vendored
Normal file
3
test/fixtures/transformation/es7-exponentian-operator/assignment/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
num = Math.pow(num, 2);
|
||||
1
test/fixtures/transformation/es7-exponentian-operator/binary/actual.js
vendored
Normal file
1
test/fixtures/transformation/es7-exponentian-operator/binary/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
2 ** 2;
|
||||
3
test/fixtures/transformation/es7-exponentian-operator/binary/expected.js
vendored
Normal file
3
test/fixtures/transformation/es7-exponentian-operator/binary/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
Math.pow(2, 2);
|
||||
3
test/fixtures/transformation/es7-exponentian-operator/options.json
vendored
Normal file
3
test/fixtures/transformation/es7-exponentian-operator/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"experimental": true
|
||||
}
|
||||
Reference in New Issue
Block a user