Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

[WIP] Move the logic to load properties of a node to util file.#884

Merged
nchevobbe merged 3 commits into
masterfrom
reps-load-properties
Jan 10, 2018
Merged

[WIP] Move the logic to load properties of a node to util file.#884
nchevobbe merged 3 commits into
masterfrom
reps-load-properties

Conversation

@nchevobbe

Copy link
Copy Markdown
Member

This will allow a consumer (e.g. the debugger) to preload properties of a given root
and use them as it wishes (e.g., for the debugger, use all the direct properties as
root for the ObjectInspector of the Popup preview).

This will allow a consumer (e.g. the debugger) to preload properties of a given root
and use them as it wishes (e.g., for the debugger, use all the direct properties as
root for the ObjectInspector of the Popup preview).
@nchevobbe

Copy link
Copy Markdown
Member Author

WIP because I need to write the debugger code (which I'll do right away) that would make use of that and validate my assumptions.

cc @jasonLaster

@jasonLaster jasonLaster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, you know that I am a fan of isolating this function

return getClosestNonBucketNode(parent);
}

function loadItemProperties(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function could probably be in its own module. It is sufficiently interesting in terms of dependencies and logic

  
+ const {
+   enumEntries,
+   enumIndexedProperties,
+   enumNonIndexedProperties,
+   getPrototype,
+   enumSymbols,
+ } = require("./client");
+ 

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean by own module ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's own file

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@nchevobbe

nchevobbe commented Jan 9, 2018

Copy link
Copy Markdown
Member Author

okay, this is working in the debugger, even if it needs a bit too much in my opinion

@nchevobbe nchevobbe merged commit 9bc0030 into master Jan 10, 2018
@nchevobbe nchevobbe deleted the reps-load-properties branch January 10, 2018 15:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants