Commit 1a1474ef authored by ggaren@apple.com's avatar ggaren@apple.com

Rubber-stamped by Oliver Hunt.

        
        Landing a few layout tests from http://bugs.webkit.org/show_bug.cgi?id=14868
        Import variable lookup optimizations from KJS

        * fast/js/kde/completion-expected.txt:
        * fast/js/kde/resources/completion.js:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27727 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0c86647c
2007-11-12 Geoffrey Garen <ggaren@apple.com>
Rubber-stamped by Oliver Hunt.
Landing a few layout tests from http://bugs.webkit.org/show_bug.cgi?id=14868
Import variable lookup optimizations from KJS
* fast/js/kde/completion-expected.txt:
* fast/js/kde/resources/completion.js:
2007-11-12 Geoffrey Garen <ggaren@apple.com>
Rubber-stamped by Oliver Hunt.
Landing a few layout tests from http://bugs.webkit.org/show_bug.cgi?id=14868
Import variable lookup optimizations from KJS
* fast/js/kde/completion-expected.txt:
* fast/js/kde/iteration-expected.txt:
* fast/js/kde/resources/completion.js:
* fast/js/kde/resources/iteration.js:
2007-11-12 Geoffrey Garen <ggaren@apple.com>
Rubber-stamped by Oliver Hunt.
......
......@@ -5,6 +5,11 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS foo(), i is 2
PASS caught is true
PASS val is 11
PASS val is 12
PASS val is 13
PASS val is 14
PASS val is 15
PASS successfullyParsed is true
TEST COMPLETE
......
......@@ -12,4 +12,16 @@ var caught = false;
try { eval("return;"); } catch(e) { caught = true; }
shouldBeTrue("caught");
// value completions take precedence
var val = eval("11; { }");
shouldBe("val", "11");
val = eval("12; ;");
shouldBe("val", "12");
val = eval("13; if(false);");
shouldBe("val", "13");
val = eval("14; function f() {}");
shouldBe("val", "14");
val = eval("15; var v = 0");
shouldBe("val", "15");
successfullyParsed = true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment