[Mentorship Diary] Ben and Sneha
Closed this issue · 2 comments
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
-
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
- http://sourcemaps.info/spec.html
- Detect whether or not the code we're about to compile has a sourcemap.
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
- Using the sourceMap we have stored in the cache, use a library like: https://www.npmjs.com/package/source-map to find the original position.
- We then update the error message accordingly.
Next Steps
Code for calling JavaScript from C++.