Skip to content

Add support for registered constructors - #71

Merged
oliverbock merged 3 commits into
JavascriptNet:masterfrom
Ablu:instance_of
Feb 25, 2019
Merged

oliverbock merged 3 commits into
JavascriptNet:masterfrom
Ablu:instance_of

Conversation

@Ablu

@Ablu Ablu commented Jan 22, 2019

Copy link
Copy Markdown
Collaborator

Part of #60

/cc @spahnke

Test is green, making the "registration logic" configurable is still missing

@Ablu

Ablu commented Jan 22, 2019

Copy link
Copy Markdown
Collaborator Author

@spahnke though I guess it is simpler if I simply finish it next week. There is not that much left to do.

@Ablu Ablu changed the title WIP: Add support for registered constructors Jan 29, 2019
@Ablu

Ablu commented Jan 29, 2019

Copy link
Copy Markdown
Collaborator Author

Ready for review!

@Ablu

Ablu commented Jan 29, 2019

Copy link
Copy Markdown
Collaborator Author

Added a small commit which adds a test for prototype extension

@Ablu Ablu mentioned this pull request Jan 29, 2019
@Ablu

Ablu commented Feb 11, 2019

Copy link
Copy Markdown
Collaborator Author

@oliverbock: Will you have time to review this? :)

@oliverbock oliverbock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Very neat.

Erik Schilling added 3 commits February 19, 2019 11:22
This allows to register a function (delegate in .NET) as constructor
function in JavaScript.
In order to support this a new method `SetConstructor` was introduced
which allows to register a constructor function for a specific type
under a name. This fuction is then available to the executed JavaScript
code and invoking `new` with this function results in the objects being
registered as `instanceof` the registered function.

Additionally, objects which are created in .NET code are also converted
to V8 while preserving the `instanceof` relation if the type is
registered.

Part of JavascriptNet#60
@Ablu

Ablu commented Feb 19, 2019

Copy link
Copy Markdown
Collaborator Author

Fixed the issues

@Ablu

Ablu commented Feb 25, 2019 •

Copy link
Copy Markdown
Collaborator Author

Did you forget to click "Merge"? :)

@oliverbock
oliverbock merged commit 2f3437f into JavascriptNet:master Feb 25, 2019
@oliverbock

Copy link
Copy Markdown
Contributor

Must have. Sorry. Feel free to remind me sooner.

@Ablu

Ablu commented Feb 25, 2019

Copy link
Copy Markdown
Collaborator Author

No worries, we build from a mix of merged branches locally anyway :)

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

Labels

None yet

2 participants