nodejs/mentorship

[Mentorship Diary] Ben and Sneha

Closed this issue · 2 comments

[Mentorship Diary] Ben and Sneha

(Mentorship Round 2) @bcoe will be mentoring @snehasi about testing in Node.js

Kick off Meeting Notes: July 14 2019

Introductions

@bcoe and @snehasi had the first meeting over Hangouts on July 14. We introduced ourselves, talked about our projects and expectations from the mentorship.

Initial project idea discussion

We discussed proper test coverage and the issues faced in creating complete test sets and validators while maintaining the system. We talked about nodejs code coverage and c8. Ben also discussed V8, a JS engine and sourcemaps. Our project design isn't finalized yet but we hope to create a project which is useful for the nodejs community.

Communication

We will use weekly video call, GitHub, Slack and e-mail.

Next steps

  • Building Node.js

  • Reading on Sourcemaps and the javascript test coverage.

  • A design document for the project.

Node.js Mentorship Meeting 2: Project Plan

Project plan as discussed by @bcoe and @snehasi

Detecting source map in executing script

Creating file with source map for testing

  • Edited cjs/loader.js to detect a source map.
  • Created a file with a source map using: npm i nyc -g (this can create a working source map that’s Base64 encoded, so we don’t have to load it from a file).

Caching Source Map

  • For common.js we extract the source map while caching.

Rewriting Stack Trace

Next Steps

Code for calling JavaScript from C++.