From 07d7a920fb34a003dd700b93efff4acb0d7882a6 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 16 Jul 2019 18:49:38 +0300 Subject: [PATCH] docs... Signed-off-by: Alex A. Naanou --- object.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/object.js b/object.js index 9c987ed..7274c32 100755 --- a/object.js +++ b/object.js @@ -159,6 +159,8 @@ function(root, ...objects){ // 1) the base instance object is created // 2) if .__new__(..) is defined it is passed to it along with the // constructor arguments and the return value is used as base instance. +// NOTE: .__new__(..) is called in the context of the constructor +// .prototype... // 2) the base instance object is prepared (.__proto__ is set) // 3) if is present, then it is called with instance as // context and passed the constructor arguments