JScript eval bug

Discussion in 'ASP General' started by Bryan Mills, May 31, 2004.

  1. Bryan Mills

    Bryan Mills Guest

    The eval function in JScript doesn't work according to
    spec. Specifically, the function C() on page 73 of the
    ECMA-262 spec doesn't return the function object
    correctly under IIS 5. Binding the anonymous function to
    a variable name and then evaluating that works as a
    workaround, e.g.
    function C() {
    return eval("var x = (function (x) {return x*;}); x");
    }
    works. However, it should be possible to simply evaluate
    a function without binding it to a name using the eval
    function, especially since the spec has an explicit
    example of this.
     
    Bryan Mills, May 31, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon Maz
    Replies:
    4
    Views:
    1,274
    Jon Maz
    Sep 9, 2004
  2. Maxwell2006
    Replies:
    5
    Views:
    2,396
    Steven Cheng[MSFT]
    Mar 7, 2006
  3. Bryan Mills

    Another JScript eval bug

    Bryan Mills, May 31, 2004, in forum: ASP General
    Replies:
    1
    Views:
    96
    Evertjan.
    May 31, 2004
  4. John Bentley
    Replies:
    14
    Views:
    353
    Jim Ley
    Feb 5, 2004
  5. VK
    Replies:
    4
    Views:
    356
    Thomas 'PointedEars' Lahn
    Jan 12, 2006
Loading...

Share This Page