Skip to content

Conversation

@JakeChampion
Copy link
Contributor

This pull-request is part of the solution for #113

This pull-request changes our Dictionary implementation to use JS_NewObjectForConstructor when the construction has come from the applications' JavaScript, which assigns the correct prototype to the instance being constructed (taking into account extends in JavaScript)

I've also added a test which confirms that the correct prototype has been assigned when extending from Dictionary, the test is written in a way that makes it simpler to add the same test for any other builtin classes

@JakeChampion JakeChampion marked this pull request as ready for review June 21, 2022 14:57
Copy link
Contributor

@elliottt elliottt left a comment

Choose a reason for hiding this comment

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

👍

@JakeChampion JakeChampion force-pushed the jake/extend-from-compressionstream branch from e6c4f81 to d3fff39 Compare June 21, 2022 16:38
Base automatically changed from jake/extend-from-compressionstream to main June 21, 2022 16:50
@JakeChampion JakeChampion force-pushed the jake/extend-from-dictionary branch from 00b31b4 to 35fbcd6 Compare June 21, 2022 16:51
@JakeChampion JakeChampion merged commit 5f16d89 into main Jun 21, 2022
@JakeChampion JakeChampion deleted the jake/extend-from-dictionary branch June 21, 2022 17:05
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.

3 participants