From eb8df2fa7aa7b008bd8dbce765694635a564e8f9 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 11 Jan 2024 12:52:14 -0800 Subject: [PATCH] Update Kernel#load documentation to remove phrase related to protection Code loaded via Kernel#load can modify the global namespace even if the wrap parameter is provided. Fixes [Bug #19990] --- load.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/load.c b/load.c index d962d08b37..f0c62dc707 100644 --- a/load.c +++ b/load.c @@ -883,9 +883,8 @@ rb_load_protect(VALUE fname, int wrap, int *pstate) * LoadError will be raised. * * If the optional _wrap_ parameter is +true+, the loaded script will - * be executed under an anonymous module, protecting the calling - * program's global namespace. If the optional _wrap_ parameter is a - * module, the loaded script will be executed under the given module. + * be executed under an anonymous module. If the optional _wrap_ parameter + * is a module, the loaded script will be executed under the given module. * In no circumstance will any local variables in the loaded file be * propagated to the loading environment. */