James Lacey created THRIFT-5159: ----------------------------------- Summary: Node.js: Fix 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 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)