Changeset 198978 in webkit
- Timestamp:
- Apr 2, 2016 6:22:25 PM (8 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r198971 r198978 1 2016-04-02 Skachkov Oleksandr <gskachkov@gmail.com> 2 3 [ES6] Arrow function syntax. Add missed test for using 'with' and 'this' in arrow function. 4 https://bugs.webkit.org/show_bug.cgi?id=156059 5 6 Reviewed by Saam Barati. 7 8 Added test case that cover using 'with' with lexically bound 'this' in arrow function, this case was not 9 covered by tests for arrow function. 10 11 * js/arrowfunction-lexical-bind-this-expected.txt: 12 * js/script-tests/arrowfunction-lexical-bind-this.js: 13 1 14 2016-04-02 David Kilzer <ddkilzer@apple.com> 2 15 -
trunk/LayoutTests/js/arrowfunction-lexical-bind-this-expected.txt
r194340 r198978 20 20 PASS fooObject.arr() is internal_value_1 21 21 PASS fooObject._id is internal_value_2 22 PASS boo.call(o1) is o1 22 23 PASS successfullyParsed is true 23 24 -
trunk/LayoutTests/js/script-tests/arrowfunction-lexical-bind-this.js
r194340 r198978 99 99 shouldBe("fooObject._id", 'internal_value_2'); 100 100 101 function boo() { 102 let arr = () => { 103 with ({'this': 40}) { 104 return this; 105 } 106 } 107 return arr(); 108 } 109 110 let o1 = {'this': 20}; 111 112 shouldBe('boo.call(o1)', 'o1'); 113 101 114 var successfullyParsed = true;
Note: See TracChangeset
for help on using the changeset viewer.