Commit 3d056c8
globalThis to _G (#631)
* globalThis to _G
Closes #592
* moved globalThis check to transformIdentifierExpression
* support for "typeof globalThis" WIP
* Removed is standard lib test
* globalThis transformation only for identifier name not identifier type.
* fixed prettier
* Fixed prettier script
* Changed transpile -> execute to transpileAndExecute where possible
* readd symbol.declaration check
* Fixed prettier version inconsistency (1.17.x / 1.18.x)1 parent 85050fd commit 3d056c8
File tree
4 files changed
+85
-41
lines changed- src
- test/unit
4 files changed
+85
-41
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4876 | 4876 | | |
4877 | 4877 | | |
4878 | 4878 | | |
4879 | | - | |
4880 | | - | |
4881 | | - | |
4882 | | - | |
4883 | | - | |
4884 | | - | |
4885 | | - | |
4886 | | - | |
4887 | 4879 | | |
4888 | 4880 | | |
4889 | 4881 | | |
| |||
4910 | 4902 | | |
4911 | 4903 | | |
4912 | 4904 | | |
| 4905 | + | |
| 4906 | + | |
| 4907 | + | |
| 4908 | + | |
4913 | 4909 | | |
4914 | 4910 | | |
4915 | 4911 | | |
| |||
4925 | 4921 | | |
4926 | 4922 | | |
4927 | 4923 | | |
| 4924 | + | |
| 4925 | + | |
| 4926 | + | |
4928 | 4927 | | |
4929 | 4928 | | |
4930 | 4929 | | |
| |||
5432 | 5431 | | |
5433 | 5432 | | |
5434 | 5433 | | |
5435 | | - | |
| 5434 | + | |
| 5435 | + | |
5436 | 5436 | | |
5437 | 5437 | | |
5438 | 5438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
0 commit comments