Repository navigation
Conversation
Codecov Report
@@ Coverage Diff @@
## master #634 +/- ##
=======================================
Coverage 72.81% 72.81%
=======================================
Files 179 179
Lines 13197 13197
=======================================
Hits 9609 9609
Misses 3588 3588 Continue to review full report at Codecov.
|
Razican
left a comment
There was a problem hiding this comment.
Thank you for the contribution! I added some suggestions where I found them reasonable.
I think it would be best if we used normal Cargo examples for the examples, instead of creating a new package.
In any case, about the examples, I didn't have the time to check them thoroughly, but there are some things missing:
- I noticed no
\nat the end of many files. This doesn't seem to be following the.editorConfigfile in the project. Most code editors should use it by default. - We should add CI for all these examples.
- I'm missing more module-level documentation in each example file.
| //Read the module source file | ||
| println!("Loading: {}", libfile); | ||
| let buffer = read_to_string(libfile); | ||
| if buffer.is_err(){ |
There was a problem hiding this comment.
As clippy suggests, we should use if...let here.
| let return_value = ResultValue::from(Ok(Value::from(module_exports))); | ||
| return return_value; | ||
| } | ||
| } No newline at end of file |
|
@HalidOdat Changed to engine.to_string as suggested in #633 I am able to run it in the dev branch but the CI fails at the following code snippets. Request help thanks. Pattern 1 Pattern 2 |
it should be the other way around
The previous implementation of |
|
I think this should be blocked until #627 lands. That will give us much better examples. |
|
Hi @elasmojs, how is this going? |
|
oops, rebased it and it somehow lost the changes here. I've created a new PR |
Added boa examples as per issue #446 Overtaken #634 Somehow screwed that branch up by rebasing it and losing access pings @elasmojs This Pull Request fixes/closes #446 . Co-authored-by: Jason Williams <[email protected]> Co-authored-by: Iban Eguia (Razican) <[email protected]> Co-authored-by: jasonwilliams <[email protected]> Co-authored-by: jedel1043 <[email protected]>
This Pull Request fixes/closes #446 .
It changes the following: