Changeset 34462 in webkit


Ignore:
Timestamp:
Jun 8, 2008 10:20:32 PM (16 years ago)
Author:
cwzwarich@webkit.org
Message:

2008-06-08 Cameron Zwarich <cwzwarich@uwaterloo.ca>

Reviewed by Oliver.

Bug 17931: Incorrect decompilation with |new|
<https://bugs.webkit.org/show_bug.cgi?id=17931>

This bug was fixed by SquirrelFish, but we should add a test.

  • fast/js/function-toString-parentheses-expected.txt:
  • fast/js/resources/function-toString-parentheses.js:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r34461 r34462  
     12008-06-08  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
     2
     3        Reviewed by Oliver.
     4
     5        Bug 17931: Incorrect decompilation with |new|
     6        <https://bugs.webkit.org/show_bug.cgi?id=17931>
     7
     8        This bug was fixed by SquirrelFish, but we should add a test.
     9
     10        * fast/js/function-toString-parentheses-expected.txt:
     11        * fast/js/resources/function-toString-parentheses.js:
     12
    1132008-06-08  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
    214
  • trunk/LayoutTests/fast/js/function-toString-parentheses-expected.txt

    r33979 r34462  
    496496PASS compileAndSerializeLeftmostTest('const a = 1, b = (1, 2)') is 'const a = 1, b = (1, 2)'
    497497PASS compileAndSerializeLeftmostTest('const a = (1, 2), b = (1, 2)') is 'const a = (1, 2), b = (1, 2)'
     498PASS compileAndSerialize('(function () { new (a.b()).c })') is '(function () { new (a.b()).c })'
    498499PASS successfullyParsed is true
    499500
  • trunk/LayoutTests/fast/js/resources/function-toString-parentheses.js

    r33979 r34462  
    221221shouldBe("compileAndSerializeLeftmostTest('const a = (1, 2), b = (1, 2)')", "'const a = (1, 2), b = (1, 2)'");
    222222
     223shouldBe("compileAndSerialize('(function () { new (a.b()).c })')", "'(function () { new (a.b()).c })'");
     224
    223225var successfullyParsed = true;
Note: See TracChangeset for help on using the changeset viewer.