Commit e2f151f
committed
src: make process.env work with symbols in/delete
The getter for process.env already allows symbols to be used, and `in`
operator as a read-only operator can do the same.
`delete a[b]` operator in ES always returns `true` without doing
anything when `b in a === false`. Allow symbols in the deleter
accordingly.
PR-URL: #11709
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>1 parent 7a4adb5 commit e2f151f
2 files changed
+28
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2787 | 2787 | | |
2788 | 2788 | | |
2789 | 2789 | | |
| 2790 | + | |
2790 | 2791 | | |
2791 | | - | |
2792 | | - | |
2793 | | - | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
2794 | 2795 | | |
2795 | | - | |
2796 | | - | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
2800 | | - | |
2801 | | - | |
2802 | | - | |
2803 | | - | |
2804 | | - | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
2805 | 2807 | | |
2806 | | - | |
2807 | 2808 | | |
| 2809 | + | |
2808 | 2810 | | |
2809 | 2811 | | |
2810 | 2812 | | |
2811 | 2813 | | |
2812 | 2814 | | |
2813 | 2815 | | |
2814 | 2816 | | |
| 2817 | + | |
2815 | 2818 | | |
2816 | | - | |
2817 | | - | |
| 2819 | + | |
| 2820 | + | |
2818 | 2821 | | |
2819 | | - | |
2820 | | - | |
2821 | | - | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
2822 | 2825 | | |
| 2826 | + | |
2823 | 2827 | | |
2824 | 2828 | | |
2825 | 2829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
0 commit comments