summaryrefslogtreecommitdiff
path: root/src/js_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/js_stream.cc')
-rw-r--r--src/js_stream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_stream.cc b/src/js_stream.cc
index 6b7c4063e0..91041d0201 100644
--- a/src/js_stream.cc
+++ b/src/js_stream.cc
@@ -163,7 +163,7 @@ template <class Wrap>
void JSStream::Finish(const FunctionCallbackInfo<Value>& args) {
Wrap* w = Unwrap<Wrap>(args[0].As<Object>());
- w->Done(args[0]->Int32Value());
+ w->Done(args[1]->Int32Value());
}