Variables are not shadowed in inline class
authorCheng Zhao <zcbenz@gmail.com>
Mon, 28 Dec 2015 14:32:07 +0000 (22:32 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 28 Dec 2015 14:51:40 +0000 (22:51 +0800)
atom/renderer/api/lib/remote.coffee

index 88e5989..716d3be 100644 (file)
@@ -65,8 +65,8 @@ metaToValue = (meta) ->
               return metaToValue obj
             else
               # Function call.
-              ret = ipcRenderer.sendSync 'ATOM_BROWSER_FUNCTION_CALL', meta.id, wrapArgs(arguments)
-              return metaToValue ret
+              obj = ipcRenderer.sendSync 'ATOM_BROWSER_FUNCTION_CALL', meta.id, wrapArgs(arguments)
+              return metaToValue obj
       else
         ret = v8Util.createObjectWithName meta.name