IIS ASP - JScript eval bug

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > May 2004 > JScript eval bug





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author JScript eval bug
Bryan Mills

2004-05-31, 4:52 pm

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.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com