You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James Lacey (Jira)" <ji...@apache.org> on 2020/03/30 16:15:00 UTC

[jira] [Updated] (THRIFT-5159) Node.js: Runtime ReferenceError in generated code

     [ https://issues.apache.org/jira/browse/THRIFT-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Lacey updated THRIFT-5159:
--------------------------------
    Summary: Node.js: Runtime ReferenceError in generated code  (was: Node.js: Fix runtime ReferenceError in generated code)

> Node.js: Runtime ReferenceError in generated code
> -------------------------------------------------
>
>                 Key: THRIFT-5159
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5159
>             Project: Thrift
>          Issue Type: Bug
>          Components: Node.js - Compiler
>    Affects Versions: 0.13.0
>            Reporter: James Lacey
>            Priority: Major
>             Fix For: 0.14.0
>
>
> The code generated by
> {code:java}
> thrift.exe --gen js:node,ts,es6,with_ns tutorial.thrift
> {code}
> throws a ReferenceError at runtime.
> {code:java}
> Calculator.js:382 Uncaught ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor
>     at new e.Client (Calculator.js:382)
>     at Object.t.exports (create_client.js:50)
>     at Module.<anonymous> (main.js:12)
>     at r (bootstrap:19)
>     at bootstrap:83
>     at webpack-client.js:1
> e.Client @ Calculator.js:382
> t.exports @ create_client.js:50
> (anonymous) @ main.js:12
> r @ bootstrap:19
> (anonymous) @ bootstrap:83
> (anonymous) @ webpack-client.js:1
> {code}
> (The code below create_client.js in the call stack is from my Webpack bundle.)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)