Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
chakrashim: Fix SetAccessorProperty behavior
Browse files Browse the repository at this point in the history
`FunctionTemplate` asserts that it can get the external data from the
provided object. The assert was hitting because the caller was passing
in an empty `Local<FunctionTemplate>` object.

PR-URL: #454
Reviewed-By: Taylor Woll <[email protected]>
  • Loading branch information
kfarnung committed Jan 26, 2018
1 parent 11035cf commit d910601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/chakrashim/src/v8template.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ void Template::SetAccessorProperty(
if (properties != nullptr) {
properties->SetAccessorProperty(
name,
getter->GetFunction(),
setter->GetFunction(),
!getter.IsEmpty() ? getter->GetFunction() : Local<Function>(),
!setter.IsEmpty() ? setter->GetFunction() : Local<Function>(),
attribute,
access_control);
}
Expand Down

0 comments on commit d910601

Please sign in to comment.