Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      iOS
      TI SDK: 6.1.0.v20170519131839 (RC Build)
      Alloy: 1.10.0
      Hyperloop: Not enabled

      Description

      When calling require('animal') I am getting the following error:

      [ERROR]     message = "Unexpected use of reserved word 'class'";
      

      animal.js

      'use strict';
       
      class Animal { 
      	constructor(name) {
      		this.name = name;
      	}
      	speak() {
      		console.log(this.name + ' makes a noise.');
      	}
      }
       
      module.exports = Animal;
      

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              brentonhouse Brenton House
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10713
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code