Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: 4c3ec5bb1d
...
compare: a1103c2912
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Mar 04, 2013
@risseraka risseraka Fixing global leaks on "name" 28d975f
Commits on Mar 05, 2013
@arlo arlo Merge pull request #7 from risseraka/fix-global-leak
[RFR] Fixing global leaks on "name"
a1103c2
Showing with 2 additions and 0 deletions.
  1. +2 −0  index.js
View
2  index.js
@@ -29,6 +29,7 @@ function JsonRPCServer() {
JsonRPCServer.prototype.desc = function (service, params, returns) {
this.trace('***', 'describe: ' + service);
+ var name;
for (name in params) {
if ('string' == typeof(params[name])) {
params[name] = { type: params[name] };
@@ -152,6 +153,7 @@ JsonRPCServer.prototype.handleNonPOST = function(req, res) {
services: {}
};
+ var name;
for (name in JsonRPCServer.functions) {
SMD.services[name] = {
envelope: "JSON-RPC-2.0",

No commit comments for this range

Something went wrong with that request. Please try again.