Skip to content

Conversation

@madanagopaltcomcast
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Aug 20, 2019

Codecov Report

Merging #2004 into _webgl will decrease coverage by 1.46%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           _webgl    #2004      +/-   ##
==========================================
- Coverage   76.79%   75.33%   -1.47%     
==========================================
  Files         141      143       +2     
  Lines       21076    21617     +541     
==========================================
+ Hits        16186    16285      +99     
- Misses       4890     5332     +442
Impacted Files Coverage Δ
examples/pxScene2d/src/pxFont.h 96.2% <0%> (-2.49%) ⬇️
examples/pxScene2d/src/pxContextGL.cpp 83.41% <0%> (-1.54%) ⬇️
examples/pxScene2d/src/pxFont.cpp 82.02% <0%> (-1.35%) ⬇️
examples/pxScene2d/src/pxScene2d.cpp 73.86% <0%> (-0.29%) ⬇️
examples/pxScene2d/src/pxResource.cpp 74.26% <0%> (-0.28%) ⬇️
examples/pxScene2d/src/pxWebGL.cpp 19.35% <0%> (-0.13%) ⬇️
src/rtScriptV8/rtObjectWrapper.cpp 79.94% <0%> (ø) ⬆️
examples/pxScene2d/src/pxWebGL.h 100% <0%> (ø) ⬆️
examples/pxScene2d/src/pxScene2d.h 67.66% <0%> (ø) ⬆️
examples/pxScene2d/src/pxTextCanvas.h 58.82% <0%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2a01d3...3505f7f. Read the comment docs.

// define platform
var platformsource = "";
if (filename.indexOf(".mjs") != -1) {
let platformfile = await getFile(filename.substring(0, filename.lastIndexOf("/")+1) + "lib/lightning-spark.js");
Copy link
Contributor

Choose a reason for hiding this comment

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

can you use path.dirname, url.resolve please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed, please review the same

var platformsource = "";
if (filename.indexOf(".mjs") != -1) {
let platformfile = await getFile(filename.substring(0, filename.lastIndexOf("/")+1) + "lib/lightning-spark.js");
let platformfile = await getFile(urlmain.resolve(path.dirname(filename) + "/", "lib/lightning-spark.js"));
Copy link
Contributor

Choose a reason for hiding this comment

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

just let platformfile = await getFile(urlmain.resolve(filename, "lib/lightning-spark.js")); is enough, however your code works too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants