Home | History | Annotate | Download | only in webkit

Lines Matching refs:scope

24 description('This test makes sure stack unwinding works correctly when it occurs inside an eval contained in a dynamic scope.');
27 var test = "outer scope";
28 with({test:"inner scope"}) {
29 eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"inner scope\"'); }");
31 eval("try { with({test:'innermost scope'}) throw ''; } catch (e) { result = test; shouldBe('result', '\"inner scope\"'); }");
33 eval("with ({test:'innermost scope'}) try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }");
35 with ({test:'innermost scope'}) eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }");
38 eval("try { throw ''; } finally { result = test; shouldBe('result', '\"inner scope\"'); result = null; undeclared; }");
41 shouldBe('result', '"inner scope"');
43 eval("try { with({test:'innermost scope'}) throw ''; } catch (e) { result = test; shouldBe('result', '\"inner scope\"'); }");
45 eval("with ({test:'innermost scope'}) try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }");
47 with ({test:'innermost scope'}) eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }");
51 eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"outer scope\"'); }");
53 eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"outer scope\"'); }");