Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5159

Node.js: Runtime ReferenceError in generated code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.13.0
    • None
    • Node.js - Compiler
    • None

    Description

      The code generated by

      thrift.exe --gen js:node,ts,es6,with_ns tutorial.thrift
      

      throws a ReferenceError at runtime.

      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
      

      (The code below create_client.js in the call stack is from my Webpack bundle.)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jamlacey James Lacey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m