diff --git a/doc/contributing/primordials.md b/doc/contributing/primordials.md index 5570a17f6bc5bc..b763c88880f94c 100644 --- a/doc/contributing/primordials.md +++ b/doc/contributing/primordials.md @@ -122,6 +122,9 @@ performance of code in Node.js. * `SafePromiseAny` * `SafePromiseRace` * `SafePromisePrototypeFinally`: use `try {} finally {}` block instead. +* `ReflectConstruct`: Also affects `Reflect.construct`. + `ReflectConstruct` creates new types of classes inside functions. + Instead consider creating a shared class. See [nodejs/performance#109](https://github.com/nodejs/performance/issues/109). In general, when sending or reviewing a PR that makes changes in a hot code path, use extra caution and run extensive benchmarks.