Indirect eval fails when used as an element of an array or as a property of an object

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 8u60, 9
    • Component/s: core-libs
    • None
    • b54
    • generic
    • generic

        var args = [ eval ];
        args[0]("print('hello')"); // TypeError thrown here

        var obj = { foo: eval };
        obj.foo("print('hello')"); // // TypeError thrown here

        Bug reported by Marcus Lagergren.

              Assignee:
              Sundararajan Athijegannathan
              Reporter:
              Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: