diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-04-18 16:52:07 -0700 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-04-19 15:24:01 +0200 |
commit | 0a4ebc3d2c7434d46234264f3456fa3b2da060d6 (patch) | |
tree | db9ac43d26460665f62cb952e1740551865069be /src/fs_event_wrap.cc | |
parent | 223607c90f80441284482bf4480a74d1fcf5edce (diff) | |
download | node-new-0a4ebc3d2c7434d46234264f3456fa3b2da060d6.tar.gz |
src: replace Holder() with This()
Switch to always use args.This() to retrieve object instance.
Diffstat (limited to 'src/fs_event_wrap.cc')
-rw-r--r-- | src/fs_event_wrap.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc index 0df58c727f..78b7cf1c1d 100644 --- a/src/fs_event_wrap.cc +++ b/src/fs_event_wrap.cc @@ -171,9 +171,9 @@ Handle<Value> FSEventWrap::Close(const Arguments& args) { // Unwrap manually here. The UNWRAP() macro asserts that wrap != NULL. // That usually indicates an error but not here: double closes are possible // and legal, HandleWrap::Close() deals with them the same way. - assert(!args.Holder().IsEmpty()); - assert(args.Holder()->InternalFieldCount() > 0); - void* ptr = args.Holder()->GetAlignedPointerFromInternalField(0); + assert(!args.This().IsEmpty()); + assert(args.This()->InternalFieldCount() > 0); + void* ptr = args.This()->GetAlignedPointerFromInternalField(0); FSEventWrap* wrap = static_cast<FSEventWrap*>(ptr); if (wrap == NULL || wrap->initialized_ == false) { |