Description[Gin] Add Arguments::GetHolderCreationContext()
Currently, in order to get at the creation context of the holder, one
has to do the following:
v8::Local<v8::Object> holder;
arguments->GetHolder(&holder);
v8::Local<v8::Context> context = holder->CreationContext();
This isn't terrible, but it's a little verbose when all we really want
is FunctionCallbackInfo::Holder::CreationContext(). Add a method to get
at it directly.
BUG=None
Review-Url: https://codereview.chromium.org/2765853004
Cr-Commit-Position: refs/heads/master@{#459251}
Committed: https://chromium.googlesource.com/chromium/src/+/d982fdfedc982d24055caff18bb07852116d5fda
Patch Set 1 #Patch Set 2 : Add test #
Messages
Total messages: 22 (15 generated)
|