Announcement

Collapse
No announcement yet.

Exception: gt is not a function

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Exception: gt is not a function

    Here is a deck.net illustrating the exception.

    https://deck.net/307e72fc1edfb12a1b4a1626d02c8a27

    We started hitting the exception after upgrading to bridge 17.1.1.

    #2
    I just wanted to add some more detail to my colleague's post.

    It seems to be related to integers:
            var b = new Blob();
            // Double types don't seem to cause the same problem.
            var c = b.size > 20971520.0;
    https://deck.net/e808a3432df1821e5bece406ed16dd77

    Comment


      #3

      EDIT: Ignore the rest of this message below, Blob.size is a ulong. I guess the main issue must be related to ulongs.

      On possibly a related note: It seems that integer constants are automatically getting converted to int64 instead of int32.
      Shouldn't these be getting converted to 32-bit integers? Unless size is actually a long (just checked, it looks to be a uint).

      20971520 => System.UInt64(20971520)
      // I'd expect uint32
      Last edited by selinc; 2018-06-19 @ 05:00 PM.

      Comment

      Working...
      X