lib: fix the name of the fetch global function
this fixes a small regression introduced with #52275
the global.fetch.name
should be fetch
instead of value
. That is also the name that the inspector gets and what is shown implicitly on the call stack during debugging. With this change global.fetch
will be shown on the call stack instead of global.value
.
Added a generic test to ensure the same applies to all the global
functions.