Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CF496200CF5 for ; Sun, 13 Aug 2017 01:25:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CDA3A164894; Sat, 12 Aug 2017 23:25:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1ECD1164893 for ; Sun, 13 Aug 2017 01:25:04 +0200 (CEST) Received: (qmail 86182 invoked by uid 500); 12 Aug 2017 23:25:02 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 86171 invoked by uid 99); 12 Aug 2017 23:25:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Aug 2017 23:25:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 87D14180C64 for ; Sat, 12 Aug 2017 23:25:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id FgnQ-zxi5tq3 for ; Sat, 12 Aug 2017 23:25:00 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 9891D5F254 for ; Sat, 12 Aug 2017 23:25:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 59CDEE01A8 for ; Sat, 12 Aug 2017 23:25:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 149A22140C for ; Sat, 12 Aug 2017 23:25:00 +0000 (UTC) Date: Sat, 12 Aug 2017 23:25:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (THRIFT-3857) thrift js:node complier support an object as parameter not an instance of struct MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 12 Aug 2017 23:25:06 -0000 [ https://issues.apache.org/jira/browse/THRIFT-3857?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D161= 24747#comment-16124747 ]=20 ASF GitHub Bot commented on THRIFT-3857: ---------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/thrift/pull/1034 > thrift js:node complier support an object as parameter not an instance of= struct > -------------------------------------------------------------------------= ------- > > Key: THRIFT-3857 > URL: https://issues.apache.org/jira/browse/THRIFT-3857 > Project: Thrift > Issue Type: New Feature > Components: Node.js - Compiler > Affects Versions: 0.9.3, 0.10.0 > Reporter: jiangq > Assignee: James E. King, III > Fix For: 0.11.0 > > > use the tutorial.thrift,code like: > {code:javascript} > let param =3D { > op: ttypes.Operation.DIVIDE, > num1: 1, > num2: 0 > } > let work =3D new ttypes.Work(param); > client.calculate(1, work) > .then(function(message) { > =09console.log('Whoa? You know how to divide by zero?'); > }) > .fail(function(err) { > console.log("InvalidOperation " + err); > }); > {code} > can we support like these: > {code:javascript} > let work =3D { > op: ttypes.Operation.DIVIDE, > num1: 1, > num2: 0 > } > client.calculate(1, work) > .then(function(message) { > =09console.log('Whoa? You know how to divide by zero?'); > }) > .fail(function(err) { > console.log("InvalidOperation " + err); > }); > {code} > If we can support this feature will be very convenient=EF=BC=8C and I hav= e read the 't_js_generator.cc' file, find this feature is easy to support, = can we add the support for this feature? -- This message was sent by Atlassian JIRA (v6.4.14#64029)