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

Jens Geyer updated THRIFT-5159:
-------------------------------
    Fix Version/s:     (was: 0.14.0)

> 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
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to