Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update .gitignore * Update README.md * Fix a few rust issues. 1. Cosmetically changes the test structure and the test function names in the lib.rs to avoid duplicate words and group the similar tests or the tests of the same scope into modules. 2. Add a test for the README.md file code. 3. Derive the Debug trait for as many structures as possible. 4. Add more convenient methods to the V8LocalString. 5. Split the V8IsolateScope into two objects, one of which follows the Memento design pattern, allowing to temporary store the content of V8IsolateScope and restore from it. Also, reduces the amount of responsibility the V8IsolateScope has and groups the *Scope objects into one separate structure, which is (or might be) easier to work with. * Add the minimal .clangd file to help with C++ code. * Remove the commented code * Remove the commented code * Hide IsolateScope::new_dummy * Remove unused isolate scope facilities * Hide some context scope methods and use NonNull * Make the V8LocalString API safer * Add isolate ID. Having a unique identification number for each isolate helps tracking down isolates and comparing them for equality. * Check for the isolate id for V8PersistedScript. Adds a check to make sure it is impossible to create a V8LocalScript object from the V8PersistedScript object if the isolates differ. * Hide get_current_context_scope under pub(crate). * Hide V8Isolate::get_raw and get_id * Perform a minor refactoring of v8_module
- Loading branch information