summaryrefslogtreecommitdiff
path: root/src/fs_event_wrap.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-01-06 23:52:35 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-01-07 17:39:57 +0100
commit01c3d0aa888e3a2bf709da760588df191479b922 (patch)
treeef9e5c5c88cda2dc0eb04ddf5d470bf6c066dd88 /src/fs_event_wrap.cc
parent6573fc35022b783d1f93b79dbf127cf2b6c8fc23 (diff)
downloadandroid-node-v8-01c3d0aa888e3a2bf709da760588df191479b922.tar.gz
android-node-v8-01c3d0aa888e3a2bf709da760588df191479b922.tar.bz2
android-node-v8-01c3d0aa888e3a2bf709da760588df191479b922.zip
src: pass node_isolate to Local<>::New
Diffstat (limited to 'src/fs_event_wrap.cc')
-rw-r--r--src/fs_event_wrap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc
index cf4dd0b89a..5bed7d094c 100644
--- a/src/fs_event_wrap.cc
+++ b/src/fs_event_wrap.cc
@@ -152,7 +152,8 @@ void FSEventWrap::OnEvent(uv_fs_event_t* handle, const char* filename,
Local<Value> argv[3] = {
Integer::New(status, node_isolate),
eventStr,
- filename ? (Local<Value>)String::New(filename) : Local<Value>::New(v8::Null())
+ filename ? static_cast<Local<Value> >(String::New(filename))
+ : Local<Value>::New(node_isolate, v8::Null())
};
if (onchange_sym.IsEmpty()) {