mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
lib: remove outdated todo comment
PR-URL: https://github.com/nodejs/node/pull/37396 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
1 parent
27816eac61
commit
dc3c299862
1 file changed
-6
@@ -12,12 +12,6 @@ const {
|
||||
ownKeys: ReflectOwnKeys,
|
||||
} = Reflect;
|
||||
|
||||
// TODO(joyeecheung): we can restrict access to these globals in builtin
|
||||
// modules through the JS linter, for example: ban access such as `Object`
|
||||
// (which falls back to a lookup in the global proxy) in favor of
|
||||
// `primordials.Object` where `primordials` is a lexical variable passed
|
||||
// by the native module compiler.
|
||||
|
||||
// `uncurryThis` is equivalent to `func => Function.prototype.call.bind(func)`.
|
||||
// It is using `bind.bind(call)` to avoid using `Function.prototype.bind`
|
||||
// and `Function.prototype.call` after it may have been mutated by users.
|
||||
|
||||
Reference in new issue
Block a user