-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
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`. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this 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?
It is only part of the blocker dop251/goja#227 |
No description provided.