Commit ce1b5aa
doc: clarify the multi REPL example
clarify the example presented where multiple REPL
instances are run in the same process by:
- making its title unambiguous
- clarifying that they share the same `global` object
(which currently is a bit ambiguous/half implied)
- making sure that they do share the same `global`
object (via `useGlobal` set to `true`)
- they delete the unix socket if present
(so that people running the code twice don't get
confused/annoyed that the second time it doesn't
properly work)
PR-URL: #57759
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 8ca56a8 commit ce1b5aa
1 file changed
+25
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
825 | | - | |
| 825 | + | |
826 | 826 | | |
827 | 827 | | |
828 | | - | |
829 | | - | |
| 828 | + | |
| 829 | + | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
| 832 | + | |
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| 838 | + | |
838 | 839 | | |
839 | 840 | | |
840 | 841 | | |
841 | 842 | | |
842 | 843 | | |
| 844 | + | |
843 | 845 | | |
844 | 846 | | |
845 | 847 | | |
846 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
847 | 854 | | |
848 | 855 | | |
849 | 856 | | |
850 | 857 | | |
| 858 | + | |
851 | 859 | | |
852 | 860 | | |
853 | 861 | | |
854 | 862 | | |
855 | 863 | | |
856 | | - | |
| 864 | + | |
857 | 865 | | |
858 | 866 | | |
859 | 867 | | |
860 | 868 | | |
861 | 869 | | |
| 870 | + | |
862 | 871 | | |
863 | 872 | | |
864 | 873 | | |
| |||
870 | 879 | | |
871 | 880 | | |
872 | 881 | | |
| 882 | + | |
| 883 | + | |
873 | 884 | | |
874 | 885 | | |
875 | 886 | | |
876 | 887 | | |
| 888 | + | |
877 | 889 | | |
878 | 890 | | |
879 | 891 | | |
880 | 892 | | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
881 | 898 | | |
882 | 899 | | |
883 | 900 | | |
884 | 901 | | |
| 902 | + | |
885 | 903 | | |
886 | 904 | | |
887 | 905 | | |
888 | 906 | | |
889 | 907 | | |
890 | | - | |
| 908 | + | |
891 | 909 | | |
892 | 910 | | |
893 | 911 | | |
894 | 912 | | |
895 | 913 | | |
| 914 | + | |
896 | 915 | | |
897 | 916 | | |
898 | 917 | | |
| |||
0 commit comments