Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25453

iOS: console.error.bind is not a function

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: Release 6.3.0
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
      None
    • Environment:

      TiSDK 6.3.0.RC

      Description

      Steps to reproduce the behavior
      1. Create a new app and insert the following code snippet at the end of app/controllers/index.js:

      console.error.bind(null, 'test').apply();
      

      2. Run the app

      Actual behavior
      The following script error occurs:

      [ERROR] Script Error {
      [ERROR]     column = 19;
      [ERROR]     line = 19;
      [ERROR]     message = "console.error.bind is not a function. (In 'console.error.bind(null, 'test')', 'console.error.bind' is undefined)";
      [ERROR]     sourceURL = "file:///Users/jvennemann/Library/Developer/CoreSimulator/Devices/AFB48D22-ADB6-4629-BAC5-EE208FE2B712/data/Containers/Bundle/Application/19A373DC-4ECA-4C59-9C04-541FC78877BC/googlevr.app/app.js";
      [ERROR] }
      

      Expected behavior
      The word test is printed to the error log and no script error appears.

      Additional notes
      This only happens on iOS. Android seems be fine with binding console.error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jvennemann Jan Vennemann
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

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

                    Git Integration