summaryrefslogtreecommitdiff
path: root/src/fs_event_wrap.cc
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2013-04-18 16:52:07 -0700
committerBen Noordhuis <info@bnoordhuis.nl>2013-04-19 15:24:01 +0200
commit0a4ebc3d2c7434d46234264f3456fa3b2da060d6 (patch)
treedb9ac43d26460665f62cb952e1740551865069be /src/fs_event_wrap.cc
parent223607c90f80441284482bf4480a74d1fcf5edce (diff)
downloadnode-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.cc6
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) {