Skip to content

jerry: set prototype/constructor for external functions#386

Merged
yorkie merged 2 commits intomasterfrom
fix/jerry-external-func
Oct 22, 2018
Merged

jerry: set prototype/constructor for external functions#386
yorkie merged 2 commits intomasterfrom
fix/jerry-external-func

Conversation

@yorkie
Copy link
Copy Markdown
Member

@yorkie yorkie commented Oct 21, 2018

External functions are treated as incomplete creation, which prototype is set to be undefined, which causes the has_instance doesn't work at external function.

This fixes #294 and #295.

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added

External functions are treated as incomplete creation, which prototype
is set to be undefined, which causes the `has_instance` doesn't work
at external function.

Fixes: #294
Activte: #295
@yorkie yorkie merged commit 48c9f78 into master Oct 22, 2018
@yorkie yorkie deleted the fix/jerry-external-func branch October 22, 2018 13:09
yorkie added a commit that referenced this pull request Oct 24, 2018
External functions are treated as incomplete creation, which prototype
is set to be undefined, which causes the `has_instance` doesn't work
at external function.

Fixes: #294
Activte: #295
qile222 pushed a commit that referenced this pull request Oct 27, 2018
* master:
  build: use CMAKE_INSTALL_PREFIX instead of custom install command (#391)
  child_process: introduce binary protocol to optimizing performance (#393)
  iotjs: cache parsed dump table for error.stack at runtime (#392)
  jerry: merge a59cf4f from upstream to optimize the function call (#381)
  promise: optimize the performance on .then and static resolve (#385)
  jerry: set prototype/constructor for external functions (#386)
  process: add shebang parser supports (#379)
  napi: fix complete callback segv/ticks on async-work (#380)
  jerry: pass regression-test-issue-2105 for heapdump (#382)
  tls, mqtts: fix connection not be actively disconnected (#375)
  websocket: fix the crash due to http exception (#376)
  process: add signal events support (#372)
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.

jerry: external function this is not instance of target

2 participants