[Webkit-unassigned] [Bug 63583] Web Inspector fails to display source for eval with syntax error

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 29 12:42:29 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=63583





--- Comment #3 from Juan C. Montemayor <jmont at apple.com>  2011-06-29 12:42:29 PST ---
> It's better to write this kind of test as a layout test. Layout tests have better reporting. Is there something preventing you from using a layout test in this case?

Is something like this ok? 

description(
"This file tests whether a syntax error inside an eval() has the correct line number. That line number should not be the line offset of the error within an eval, but rather the eval itself. "
);

var string = "\n\n\neval(a[0]]);";
try {
    eval(string);
} catch (e) {
    if (e.line == 4)
        successfullyParsed = true;
    else
        successfullyParsed = false;
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list