From fa6b791ff335f8f39e1ff7a5a93973006060e261 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 1 Jul 2022 22:38:45 +0300 Subject: [PATCH 1/3] notes... Signed-off-by: Alex A. Naanou --- object.js | 9 +++++---- test.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/object.js b/object.js index 736a5bb..4800604 100755 --- a/object.js +++ b/object.js @@ -235,8 +235,8 @@ function(obj, stop, all){ // Non-strict match... // match(a, b, true) // -// This is similar to the default case but uses equality rather than -// identity to match values. +// This is similar to the default case but uses equality rather than +// identity to match values. // // // NOTE: this will do a shallow test using Object.keys(..) thus .__proto__ @@ -493,8 +493,9 @@ function(func){ // XXX EXPEREMENTAL... // should we support multple names??? -// XXX -var _sources = +// XXX replace the current version with these..c +// ...this will lead to breaking API.. +ear _sources = module._sources = function*(obj, name=undefined){ while(obj != null){ diff --git a/test.js b/test.js index c49c276..37f7614 100755 --- a/test.js +++ b/test.js @@ -1041,4 +1041,4 @@ typeof(__filename) != 'undefined' /********************************************************************** -* vim:set ts=4 sw=4 : */ return module }) +* vim:set ts=4 sw=4 nowrap : */ return module }) From a4ed6886ce9b3b8eb65d81aa8f91d320dfab2219 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 2 Jul 2022 19:21:03 +0300 Subject: [PATCH 2/3] notes... Signed-off-by: Alex A. Naanou --- object.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/object.js b/object.js index 736a5bb..4a55ce2 100755 --- a/object.js +++ b/object.js @@ -422,7 +422,11 @@ BOOTSTRAP(function(){ // STOP(value) yielded / thrown // -> value yielded and iteration stops // -// XXX doc!!! +// +// NOTE: this repeats the same code at lest twice, not sure yet how to avoid +// this... +// +// XXX user doc!!! // XXX should we use this for sources(..) and friends... var stoppable = module.stoppable = From 4e6c2809191ef67f7b8bfe7d90dd991737aed34f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 3 Jul 2022 23:03:24 +0300 Subject: [PATCH 3/3] typo fix... Signed-off-by: Alex A. Naanou --- object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object.js b/object.js index 2d48e7e..3a5e15e 100755 --- a/object.js +++ b/object.js @@ -499,7 +499,7 @@ function(func){ // should we support multple names??? // XXX replace the current version with these..c // ...this will lead to breaking API.. -ear _sources = +var _sources = module._sources = function*(obj, name=undefined){ while(obj != null){