From dc3c299862edc4212e0fc24ac4d409982eef247f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 16 Feb 2021 14:51:21 +0100 Subject: [PATCH] lib: remove outdated todo comment PR-URL: https://github.com/nodejs/node/pull/37396 Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Zijian Liu Reviewed-By: James M Snell Reviewed-By: Joyee Cheung --- lib/internal/per_context/primordials.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/internal/per_context/primordials.js b/lib/internal/per_context/primordials.js index 1840f859e54fcc..f5958dcf23b37e 100644 --- a/lib/internal/per_context/primordials.js +++ b/lib/internal/per_context/primordials.js @@ -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.