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

Commit

Permalink
node is now using a V8 API to pass a SideEffectType to Object::SetAcc…
Browse files Browse the repository at this point in the history
…essor. Updated shim to APIs to accept this param. Implementation ignores it.
  • Loading branch information
Mike Kaufman authored and kfarnung committed Jul 9, 2018
1 parent 3cb68f9 commit f4fb937
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,8 @@ class V8_EXPORT Object : public Value {
AccessorNameSetterCallback setter = 0,
MaybeLocal<Value> data = MaybeLocal<Value>(),
AccessControl settings = DEFAULT,
PropertyAttribute attribute = None);
PropertyAttribute attribute = None,
SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect);

V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetPropertyNames());
V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
Expand Down
3 changes: 2 additions & 1 deletion deps/chakrashim/src/v8object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,8 @@ Maybe<bool> Object::SetAccessor(Local<Context> context,
AccessorNameSetterCallback setter,
MaybeLocal<Value> data,
AccessControl settings,
PropertyAttribute attribute) {
PropertyAttribute attribute,
SideEffectType getter_side_effect_type) {
return SetAccessor(name, getter, setter, FromMaybe(data), settings, attribute,
Local<AccessorSignature>());
}
Expand Down

0 comments on commit f4fb937

Please sign in to comment.