Linking Function.call() could be made clever

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • None

      Linking the built-in Function.call() could be made clever, as it could immediately link to the function being called.

      fn.call(this, args...) ends up being a dyn:call(Function.call, fn, this, args...). It could be linked just as dyn:call(fn, this, args...) is; it'd just need to drop the first argument, and use a guard checking if the original two arguments are indeed Function.call and fn.

            Assignee:
            Attila Szegedi
            Reporter:
            Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: