Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update goja to latest master #1782

Merged
merged 1 commit into from
Jan 11, 2021
Merged

Update goja to latest master #1782

merged 1 commit into from
Jan 11, 2021

Conversation

mstoykov
Copy link
Contributor

@mstoykov mstoykov commented Jan 6, 2021

No description provided.

@mstoykov mstoykov requested a review from imiric January 6, 2021 16:54
@mstoykov mstoykov added this to the v0.30.0 milestone Jan 6, 2021
js/lib/lib.go Show resolved Hide resolved
var o1 = MyObject(arg); // same thing
o instanceof MyObject && o1 instanceof MyObject; // true
```
In order to implement a constructor function in Go use `func (goja.ConstructorCall) *goja.Object`.
Copy link
Member

Choose a reason for hiding this comment

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

Hmm how does this affect our XConstructor magic?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In no way ... as we are not using it

But also this seems as only a documentation chang

Copy link
Member

Choose a reason for hiding this comment

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

But apparently there's a native way to do this in goja which we don't use. Should we open an issue to investigate this, given that this is the code above our code to do the same 😅 https://github.com/loadimpact/k6/blob/ccffbcaaddd7f2d472cdced0da847fde2140ef88/js/common/bridge.go#L257

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think I will come to this until we decide to rewrite the bridge :D ... so if you think you will come to this refactoring work before that ... or think someone else will do it - open an issue ;)

The fixes for it are in the form of disabling all source map support as
if it's missing the parsing will error out.
@codecov-io
Copy link

codecov-io commented Jan 11, 2021

Codecov Report

Merging #1782 (e5c6108) into master (15e15e5) will decrease coverage by 0.05%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1782      +/-   ##
==========================================
- Coverage   71.46%   71.40%   -0.06%     
==========================================
  Files         178      178              
  Lines       13777    13781       +4     
==========================================
- Hits         9846     9841       -5     
- Misses       3318     3325       +7     
- Partials      613      615       +2     
Flag Coverage Δ
ubuntu 71.38% <50.00%> (-0.05%) ⬇️
windows 69.95% <50.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
js/lib/lib.go 63.63% <42.85%> (-36.37%) ⬇️
js/bundle.go 90.60% <100.00%> (+0.06%) ⬆️
lib/executor/vu_handle.go 93.33% <0.00%> (-4.77%) ⬇️

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 15e15e5...e5c6108. Read the comment docs.

@mstoykov mstoykov requested review from imiric and na-- January 11, 2021 14:29
Copy link
Member

@na-- na-- left a comment

Choose a reason for hiding this comment

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

LGTM. I see Symbol is now exported, which I remember being a blocker for something?

@mstoykov
Copy link
Contributor Author

It is only part of the blocker dop251/goja#227

@mstoykov mstoykov merged commit a3bdbf6 into master Jan 11, 2021
@mstoykov mstoykov deleted the updateGoja branch January 11, 2021 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants