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

fix: Array.prototype.toString should be called by ES value #227

Merged
merged 12 commits into from
Jan 31, 2020
Merged

fix: Array.prototype.toString should be called by ES value #227

merged 12 commits into from
Jan 31, 2020

Conversation

cisen
Copy link
Contributor

@cisen cisen commented Jan 19, 2020

No description provided.

@cisen cisen requested a review from IovoslavIovchev January 23, 2020 02:44
let method: Value =
from_value(this.get_field_slice(method_name)).expect("failed to get Array.prototype.join");
// 3.
if !method.is_function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be better if you changed the value of method and remove the duplicated logic from the if statement?

@IovoslavIovchev
Copy link
Contributor

Looks good

@IovoslavIovchev IovoslavIovchev merged commit d8f33ab into boa-dev:master Jan 31, 2020
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