From 1053f7d2b035eeeb22a8f2c1f3cb0a982f7e8f47 Mon Sep 17 00:00:00 2001 From: Joe Walker Date: Thu, 19 Mar 2015 20:47:26 +0000 Subject: [PATCH] runat-1128988: Remote the javascript type correctly. Can't transfer the global remotely. Signed-off-by: Joe Walker --- lib/gcli/types/javascript.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/gcli/types/javascript.js b/lib/gcli/types/javascript.js index 1cbad2c4..649da58e 100644 --- a/lib/gcli/types/javascript.js +++ b/lib/gcli/types/javascript.js @@ -31,8 +31,11 @@ function JavascriptType(typeSpec) { JavascriptType.prototype = Object.create(Type.prototype); -JavascriptType.prototype.getSpec = function() { - return 'javascript'; +JavascriptType.prototype.getSpec = function(commandName, paramName) { + return { + name: 'remote', + paramName: paramName + }; }; JavascriptType.prototype.stringify = function(value, context) {