[Pkg-javascript-commits] [node-expat] 72/371: alias stop as pause to match node conventions

Jonas Smedegaard dr at jones.dk
Sun Feb 28 09:59:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-expat.

commit d39b7e37daaa42dcc51bfd093b80f45a23453acd
Author: Astro <astro at spaceboyz.net>
Date:   Fri Jun 10 00:24:02 2011 +0200

    alias stop as pause to match node conventions
---
 node-expat.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/node-expat.cc b/node-expat.cc
index 59194a5..50150cd 100644
--- a/node-expat.cc
+++ b/node-expat.cc
@@ -28,6 +28,7 @@ public:
     NODE_SET_PROTOTYPE_METHOD(t, "setEncoding", SetEncoding);
     NODE_SET_PROTOTYPE_METHOD(t, "getError", GetError);
     NODE_SET_PROTOTYPE_METHOD(t, "stop", Stop);
+    NODE_SET_PROTOTYPE_METHOD(t, "pause", Stop);  // Alias for node stream conventions
     NODE_SET_PROTOTYPE_METHOD(t, "resume", Resume);
 
     target->Set(String::NewSymbol("Parser"), t->GetFunction());

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-expat.git



More information about the Pkg-javascript-commits mailing list