Changeset 181618 in webkit
- Timestamp:
- Mar 16, 2015, 10:55:46 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 42 edited
-
ChangeLog (modified) (1 diff)
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
LayoutTests/js/class-syntax-call-expected.txt (modified) (1 diff)
-
LayoutTests/js/class-syntax-declaration-expected.txt (modified) (2 diffs)
-
LayoutTests/js/class-syntax-default-constructor-expected.txt (modified) (2 diffs)
-
LayoutTests/js/class-syntax-expression-expected.txt (modified) (2 diffs)
-
LayoutTests/js/class-syntax-extends-expected.txt (modified) (2 diffs)
-
LayoutTests/js/class-syntax-super-expected.txt (modified) (1 diff)
-
LayoutTests/js/dom/reserved-words-as-property-expected.txt (modified) (6 diffs)
-
LayoutTests/js/script-tests/class-syntax-call.js (modified) (1 diff)
-
LayoutTests/js/script-tests/class-syntax-declaration.js (modified) (2 diffs)
-
LayoutTests/js/script-tests/class-syntax-default-constructor.js (modified) (2 diffs)
-
LayoutTests/js/script-tests/class-syntax-expression.js (modified) (2 diffs)
-
LayoutTests/js/script-tests/class-syntax-extends.js (modified) (3 diffs)
-
LayoutTests/js/script-tests/class-syntax-super.js (modified) (3 diffs)
-
LayoutTests/sputnik/Conformance/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.11-expected.txt (modified) (1 diff)
-
LayoutTests/sputnik/Conformance/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.27-expected.txt (modified) (1 diff)
-
LayoutTests/sputnik/Conformance/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.5-expected.txt (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig (modified) (1 diff)
-
Source/JavaScriptCore/tests/stress/class-syntax-no-loop-tdz.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/stress/class-syntax-no-tdz-in-catch.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/stress/class-syntax-no-tdz-in-conditional.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/stress/class-syntax-no-tdz-in-loop-no-inline-super.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/stress/class-syntax-no-tdz-in-loop.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/stress/class-syntax-no-tdz.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/stress/class-syntax-tdz-in-catch.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/stress/class-syntax-tdz-in-conditional.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/stress/class-syntax-tdz-in-loop.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/stress/class-syntax-tdz.js (modified) (1 diff)
-
Source/WTF/ChangeLog (modified) (1 diff)
-
Source/WTF/wtf/FeatureDefines.h (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Configurations/FeatureDefines.xcconfig (modified) (1 diff)
-
Source/WebKit/mac/ChangeLog (modified) (1 diff)
-
Source/WebKit/mac/Configurations/FeatureDefines.xcconfig (modified) (1 diff)
-
Source/WebKit2/ChangeLog (modified) (1 diff)
-
Source/WebKit2/Configurations/FeatureDefines.xcconfig (modified) (1 diff)
-
Source/cmake/WebKitFeatures.cmake (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/Scripts/webkitperl/FeatureList.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r181535 r181618 1 2015-03-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Enable ES6 classes by default 4 https://bugs.webkit.org/show_bug.cgi?id=142774 5 6 Reviewed by Gavin Barraclough. 7 8 * Source/cmake/WebKitFeatures.cmake: 9 1 10 2015-03-16 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 11 -
trunk/LayoutTests/ChangeLog
r181612 r181618 1 2015-03-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Enable ES6 classes by default 4 https://bugs.webkit.org/show_bug.cgi?id=142774 5 6 Reviewed by Gavin Barraclough. 7 8 Unskipped tests and also fixed tests so that they can run under run-javascript-tests. 9 10 * TestExpectations: Unskipped tests. 11 * js/class-syntax-call-expected.txt: 12 * js/class-syntax-declaration-expected.txt: 13 * js/class-syntax-default-constructor-expected.txt: 14 * js/class-syntax-expression-expected.txt: 15 * js/class-syntax-extends-expected.txt: 16 * js/class-syntax-super-expected.txt: 17 * js/dom/reserved-words-as-property-expected.txt: Rebaselined now that "class" is a non-reserved keyword. 18 * js/script-tests/class-syntax-call.js: Don't refer to "window" object as it doesn't exit when ran inside jsc. 19 * js/script-tests/class-syntax-declaration.js: Rebaselined after r181611, which added default constructor support. 20 * js/script-tests/class-syntax-default-constructor.js: Don't refer to "window" object. Also replaced shouldNotBe 21 by an explicit !== check as the former is not supported when ran inside jsc. 22 * js/script-tests/class-syntax-expression.js: Rebaselined after r181611. 23 * js/script-tests/class-syntax-extends.js: Ditto. Also replaced evalAndLog by shouldNotThrow as the former is not 24 supported inside jsc. 25 * js/script-tests/class-syntax-super.js: Don't refer to "window" object as it doesn't exist inside jsc. 26 * sputnik/Conformance/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.11-expected.txt: 27 * sputnik/Conformance/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.27-expected.txt: 28 * sputnik/Conformance/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.5-expected.txt: 29 1 30 2015-03-16 Joseph Pecoraro <pecoraro@apple.com> 2 31 -
trunk/LayoutTests/TestExpectations
r181611 r181618 66 66 67 67 webkit.org/b/127860 [ Debug ] js/function-apply-aliased.html [ Skip ] 68 69 # ES6 class syntax hasn't been enabled yet.70 webkit.org/b/140491 js/class-syntax-call.html [ Failure ]71 webkit.org/b/140491 js/class-syntax-declaration.html [ Failure ]72 webkit.org/b/140491 js/class-syntax-default-constructor.html [ Failure ]73 webkit.org/b/140491 js/class-syntax-expression.html [ Failure ]74 webkit.org/b/140491 js/class-syntax-extends.html [ Failure ]75 webkit.org/b/140491 js/class-syntax-scoping.html [ Failure ]76 webkit.org/b/140491 js/class-syntax-super.html [ Failure ]77 68 78 69 # This test verifies dynamic manipulation of the mroot and msqrt elements. -
trunk/LayoutTests/js/class-syntax-call-expected.txt
r181490 r181618 1 PASS class A { constructor() {} }; window.A = A; new A did not throw exception. 1 Tests for calling the constructors of ES6 classes 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 PASS class A { constructor() {} }; new A did not throw exception. 2 7 PASS A() threw exception TypeError: Cannot call a class constructor. 3 PASS class B extends A { constructor() { super() } }; window.B = B; new Adid not throw exception.8 PASS class B extends A { constructor() { super() } }; new B did not throw exception. 4 9 PASS B() threw exception TypeError: Cannot call a class constructor. 5 10 PASS new (class { constructor() {} })() did not throw exception. -
trunk/LayoutTests/js/class-syntax-declaration-expected.txt
r179371 r181618 1 Tests for ES6 class syntax declarations 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 1 6 PASS constructorCallCount is 0 2 7 PASS A.someStaticMethod() is staticMethodValue … … 14 19 PASS class X { threw exception SyntaxError: Unexpected end of script. 15 20 PASS class X { ( } threw exception SyntaxError: Unexpected token '('. Expected an indentifier.. 16 PASS class X {} threw exception SyntaxError: Class declaration without a constructor is not supported yet..21 PASS class X {} did not throw exception. 17 22 PASS class X { constructor() {} constructor() {} } threw exception SyntaxError: Cannot declare multiple constructors in a single class.. 18 23 PASS class X { constructor() {} static constructor() { return staticMethodValue; } } did not throw exception. -
trunk/LayoutTests/js/class-syntax-default-constructor-expected.txt
r181611 r181618 4 4 5 5 6 PASS class A { }; window.A = A;new A instanceof A is true6 PASS class A { }; new A instanceof A is true 7 7 PASS A() threw exception TypeError: Cannot call a class constructor. 8 8 PASS A.prototype.constructor instanceof Function is true … … 11 11 PASS B() threw exception TypeError: Cannot call a class constructor. 12 12 PASS B.prototype.constructor.name is "B" 13 PASS A is not B13 PASS A !== B is true 14 14 FAIL A.prototype.constructor should be function B() { super(...arguments); }. Was function A() { }. 15 15 PASS new (class extends (class { constructor(a, b) { return [a, b]; } }) {})(1, 2) is [1, 2] -
trunk/LayoutTests/js/class-syntax-expression-expected.txt
r179371 r181618 1 Tests for ES6 class syntax expressions 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 1 6 PASS constructorCallCount is 0 2 7 PASS A.someStaticMethod() is staticMethodValue … … 14 19 PASS x = class { threw exception SyntaxError: Unexpected end of script. 15 20 PASS x = class { ( } threw exception SyntaxError: Unexpected token '('. Expected an indentifier.. 16 PASS x = class {} threw exception SyntaxError: Class declaration without a constructor is not supported yet..21 PASS x = class {} did not throw exception. 17 22 PASS x = class { constructor() {} constructor() {} } threw exception SyntaxError: Cannot declare multiple constructors in a single class.. 18 23 PASS x = class { constructor() {} static constructor() { return staticMethodValue; } } did not throw exception. -
trunk/LayoutTests/js/class-syntax-extends-expected.txt
r181293 r181618 13 13 PASS x = class extends threw exception SyntaxError: Unexpected end of script. 14 14 PASS x = class extends Base { threw exception SyntaxError: Unexpected end of script. 15 PASS x = class extends Base { } threw exception SyntaxError: Class declaration without a constructor is not supported yet..15 PASS x = class extends Base { } did not throw exception. 16 16 PASS x = class extends Base { constructor() { } } did not throw exception. 17 17 PASS x.__proto__ is Base … … 21 21 PASS x = class extends 3 { constructor() { } }; x.__proto__ threw exception TypeError: The superclass is not an object.. 22 22 PASS x = class extends "abc" { constructor() { } }; x.__proto__ threw exception TypeError: The superclass is not an object.. 23 baseWithBadPrototype = class { constructor() { } }; baseWithBadPrototype.prototype = 3 23 PASS baseWithBadPrototype = class { constructor() { } }; baseWithBadPrototype.prototype = 3 did not throw exception. 24 24 PASS x = class extends baseWithBadPrototype { constructor() { } } threw exception TypeError: The superclass's prototype is not an object.. 25 baseWithBadPrototype.prototype = "abc" 25 PASS baseWithBadPrototype.prototype = "abc" did not throw exception. 26 26 PASS x = class extends baseWithBadPrototype { constructor() { } } threw exception TypeError: The superclass's prototype is not an object.. 27 27 PASS baseWithBadPrototype.prototype = null; x = class extends baseWithBadPrototype { constructor() { } } did not throw exception. -
trunk/LayoutTests/js/class-syntax-super-expected.txt
r181404 r181618 28 28 PASS x = { }; new (class extends Base { constructor() { return x } }); is x 29 29 PASS x instanceof Base is false 30 PASS new (class extends Base { constructor() { } }) threw exception TypeError: Cannot return a non-object type in the constructor of a derived class..30 PASS new (class extends Base { constructor() { } }) threw exception ReferenceError: Cannot access uninitialized variable.. 31 31 PASS new (class extends Base { constructor() { return 1; } }) threw exception TypeError: Cannot return a non-object type in the constructor of a derived class.. 32 32 PASS new (class extends null { constructor() { return undefined } }) is undefined 33 33 PASS x = { }; new (class extends null { constructor() { return x } }); is x 34 34 PASS x instanceof Object is true 35 PASS new (class extends null { constructor() { } }) threw exception TypeError: Cannot return a non-object type in the constructor of a derived class..35 PASS new (class extends null { constructor() { } }) threw exception ReferenceError: Cannot access uninitialized variable.. 36 36 PASS new (class extends null { constructor() { return 1; } }) threw exception TypeError: Cannot return a non-object type in the constructor of a derived class.. 37 37 PASS new (class extends null { constructor() { super() } }) did not throw exception. -
trunk/LayoutTests/js/dom/reserved-words-as-property-expected.txt
r158014 r181618 1048 1048 PASS "use strict";({ get with(){}, set with(){}, parsedOkay: 42 }.parsedOkay === 42) is true 1049 1049 PASS (function(){"use strict";({ get with(){}, set with(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true 1050 PASS var class; true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1051 PASS (function(){var class; true}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1052 PASS var class = 42; class === 42 threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1053 PASS (function(){var class = 42; class === 42}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1054 PASS function g(class){ }; true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1055 PASS (function(){function g(class){ }; true}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1056 PASS /class/.test(function g(class){ }) threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1057 PASS (function(){/class/.test(function g(class){ })}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1058 PASS try{}catch(class){}; true threw exception SyntaxError: Cannot use the reservedword 'class' as a catch variable name..1059 PASS (function(){try{}catch(class){}; true}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a catch variable name..1060 PASS function class(){ }; true threw exception SyntaxError: Cannot use the reservedword 'class' as a function name..1061 PASS (function(){function class(){ }; true}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a function name..1050 PASS var class; true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1051 PASS (function(){var class; true}); true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1052 PASS var class = 42; class === 42 threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1053 PASS (function(){var class = 42; class === 42}); true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1054 PASS function g(class){ }; true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1055 PASS (function(){function g(class){ }; true}); true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1056 PASS /class/.test(function g(class){ }) threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1057 PASS (function(){/class/.test(function g(class){ })}); true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1058 PASS try{}catch(class){}; true threw exception SyntaxError: Cannot use the keyword 'class' as a catch variable name.. 1059 PASS (function(){try{}catch(class){}; true}); true threw exception SyntaxError: Cannot use the keyword 'class' as a catch variable name.. 1060 PASS function class(){ }; true threw exception SyntaxError: Cannot use the keyword 'class' as a function name.. 1061 PASS (function(){function class(){ }; true}); true threw exception SyntaxError: Cannot use the keyword 'class' as a function name.. 1062 1062 PASS ({ "class": 42 }.class === 42) is true 1063 1063 PASS (function(){({ "class": 42 }.class === 42)}); true is true … … 1066 1066 PASS ({ get class(){}, set class(){}, parsedOkay: 42 }.parsedOkay === 42) is true 1067 1067 PASS (function(){({ get class(){}, set class(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true 1068 PASS "use strict";var class; true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1069 PASS (function(){"use strict";var class; true}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1070 PASS "use strict";var class = 42; class === 42 threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1071 PASS (function(){"use strict";var class = 42; class === 42}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1072 PASS "use strict";function g(class){ "use strict"; }; true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1073 PASS (function(){"use strict";function g(class){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1074 PASS "use strict";/class/.test(function g(class){ "use strict"; }) threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1075 PASS (function(){"use strict";/class/.test(function g(class){ "use strict"; })}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a variable name..1076 PASS "use strict";try{}catch(class){}; true threw exception SyntaxError: Cannot use the reservedword 'class' as a catch variable name..1077 PASS (function(){"use strict";try{}catch(class){}; true}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a catch variable name..1078 PASS "use strict";function class(){ "use strict"; }; true threw exception SyntaxError: Cannot use the reservedword 'class' as a function name..1079 PASS (function(){"use strict";function class(){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the reservedword 'class' as a function name..1068 PASS "use strict";var class; true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1069 PASS (function(){"use strict";var class; true}); true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1070 PASS "use strict";var class = 42; class === 42 threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1071 PASS (function(){"use strict";var class = 42; class === 42}); true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1072 PASS "use strict";function g(class){ "use strict"; }; true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1073 PASS (function(){"use strict";function g(class){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1074 PASS "use strict";/class/.test(function g(class){ "use strict"; }) threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1075 PASS (function(){"use strict";/class/.test(function g(class){ "use strict"; })}); true threw exception SyntaxError: Cannot use the keyword 'class' as a variable name.. 1076 PASS "use strict";try{}catch(class){}; true threw exception SyntaxError: Cannot use the keyword 'class' as a catch variable name.. 1077 PASS (function(){"use strict";try{}catch(class){}; true}); true threw exception SyntaxError: Cannot use the keyword 'class' as a catch variable name.. 1078 PASS "use strict";function class(){ "use strict"; }; true threw exception SyntaxError: Cannot use the keyword 'class' as a function name.. 1079 PASS (function(){"use strict";function class(){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the keyword 'class' as a function name.. 1080 1080 PASS "use strict";({ "class": 42 }.class === 42) is true 1081 1081 PASS (function(){"use strict";({ "class": 42 }.class === 42)}); true is true … … 1192 1192 PASS "use strict";({ get export(){}, set export(){}, parsedOkay: 42 }.parsedOkay === 42) is true 1193 1193 PASS (function(){"use strict";({ get export(){}, set export(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true 1194 PASS var extends; true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1195 PASS (function(){var extends; true}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1196 PASS var extends = 42; extends === 42 threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1197 PASS (function(){var extends = 42; extends === 42}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1198 PASS function g(extends){ }; true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1199 PASS (function(){function g(extends){ }; true}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1200 PASS /extends/.test(function g(extends){ }) threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1201 PASS (function(){/extends/.test(function g(extends){ })}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1202 PASS try{}catch(extends){}; true threw exception SyntaxError: Cannot use the reservedword 'extends' as a catch variable name..1203 PASS (function(){try{}catch(extends){}; true}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a catch variable name..1204 PASS function extends(){ }; true threw exception SyntaxError: Cannot use the reservedword 'extends' as a function name..1205 PASS (function(){function extends(){ }; true}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a function name..1194 PASS var extends; true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1195 PASS (function(){var extends; true}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1196 PASS var extends = 42; extends === 42 threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1197 PASS (function(){var extends = 42; extends === 42}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1198 PASS function g(extends){ }; true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1199 PASS (function(){function g(extends){ }; true}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1200 PASS /extends/.test(function g(extends){ }) threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1201 PASS (function(){/extends/.test(function g(extends){ })}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1202 PASS try{}catch(extends){}; true threw exception SyntaxError: Cannot use the keyword 'extends' as a catch variable name.. 1203 PASS (function(){try{}catch(extends){}; true}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a catch variable name.. 1204 PASS function extends(){ }; true threw exception SyntaxError: Cannot use the keyword 'extends' as a function name.. 1205 PASS (function(){function extends(){ }; true}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a function name.. 1206 1206 PASS ({ "extends": 42 }.extends === 42) is true 1207 1207 PASS (function(){({ "extends": 42 }.extends === 42)}); true is true … … 1210 1210 PASS ({ get extends(){}, set extends(){}, parsedOkay: 42 }.parsedOkay === 42) is true 1211 1211 PASS (function(){({ get extends(){}, set extends(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true 1212 PASS "use strict";var extends; true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1213 PASS (function(){"use strict";var extends; true}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1214 PASS "use strict";var extends = 42; extends === 42 threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1215 PASS (function(){"use strict";var extends = 42; extends === 42}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1216 PASS "use strict";function g(extends){ "use strict"; }; true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1217 PASS (function(){"use strict";function g(extends){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1218 PASS "use strict";/extends/.test(function g(extends){ "use strict"; }) threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1219 PASS (function(){"use strict";/extends/.test(function g(extends){ "use strict"; })}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a variable name..1220 PASS "use strict";try{}catch(extends){}; true threw exception SyntaxError: Cannot use the reservedword 'extends' as a catch variable name..1221 PASS (function(){"use strict";try{}catch(extends){}; true}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a catch variable name..1222 PASS "use strict";function extends(){ "use strict"; }; true threw exception SyntaxError: Cannot use the reservedword 'extends' as a function name..1223 PASS (function(){"use strict";function extends(){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the reservedword 'extends' as a function name..1212 PASS "use strict";var extends; true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1213 PASS (function(){"use strict";var extends; true}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1214 PASS "use strict";var extends = 42; extends === 42 threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1215 PASS (function(){"use strict";var extends = 42; extends === 42}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1216 PASS "use strict";function g(extends){ "use strict"; }; true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1217 PASS (function(){"use strict";function g(extends){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1218 PASS "use strict";/extends/.test(function g(extends){ "use strict"; }) threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1219 PASS (function(){"use strict";/extends/.test(function g(extends){ "use strict"; })}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a variable name.. 1220 PASS "use strict";try{}catch(extends){}; true threw exception SyntaxError: Cannot use the keyword 'extends' as a catch variable name.. 1221 PASS (function(){"use strict";try{}catch(extends){}; true}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a catch variable name.. 1222 PASS "use strict";function extends(){ "use strict"; }; true threw exception SyntaxError: Cannot use the keyword 'extends' as a function name.. 1223 PASS (function(){"use strict";function extends(){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the keyword 'extends' as a function name.. 1224 1224 PASS "use strict";({ "extends": 42 }.extends === 42) is true 1225 1225 PASS (function(){"use strict";({ "extends": 42 }.extends === 42)}); true is true … … 1264 1264 PASS "use strict";({ get import(){}, set import(){}, parsedOkay: 42 }.parsedOkay === 42) is true 1265 1265 PASS (function(){"use strict";({ get import(){}, set import(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true 1266 PASS var super; true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1267 PASS (function(){var super; true}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1268 PASS var super = 42; super === 42 threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1269 PASS (function(){var super = 42; super === 42}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1270 PASS function g(super){ }; true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1271 PASS (function(){function g(super){ }; true}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1272 PASS /super/.test(function g(super){ }) threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1273 PASS (function(){/super/.test(function g(super){ })}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1274 PASS try{}catch(super){}; true threw exception SyntaxError: Cannot use the reservedword 'super' as a catch variable name..1275 PASS (function(){try{}catch(super){}; true}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a catch variable name..1276 PASS function super(){ }; true threw exception SyntaxError: Cannot use the reservedword 'super' as a function name..1277 PASS (function(){function super(){ }; true}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a function name..1266 PASS var super; true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1267 PASS (function(){var super; true}); true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1268 PASS var super = 42; super === 42 threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1269 PASS (function(){var super = 42; super === 42}); true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1270 PASS function g(super){ }; true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1271 PASS (function(){function g(super){ }; true}); true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1272 PASS /super/.test(function g(super){ }) threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1273 PASS (function(){/super/.test(function g(super){ })}); true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1274 PASS try{}catch(super){}; true threw exception SyntaxError: Cannot use the keyword 'super' as a catch variable name.. 1275 PASS (function(){try{}catch(super){}; true}); true threw exception SyntaxError: Cannot use the keyword 'super' as a catch variable name.. 1276 PASS function super(){ }; true threw exception SyntaxError: Cannot use the keyword 'super' as a function name.. 1277 PASS (function(){function super(){ }; true}); true threw exception SyntaxError: Cannot use the keyword 'super' as a function name.. 1278 1278 PASS ({ "super": 42 }.super === 42) is true 1279 1279 PASS (function(){({ "super": 42 }.super === 42)}); true is true … … 1282 1282 PASS ({ get super(){}, set super(){}, parsedOkay: 42 }.parsedOkay === 42) is true 1283 1283 PASS (function(){({ get super(){}, set super(){}, parsedOkay: 42 }.parsedOkay === 42)}); true is true 1284 PASS "use strict";var super; true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1285 PASS (function(){"use strict";var super; true}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1286 PASS "use strict";var super = 42; super === 42 threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1287 PASS (function(){"use strict";var super = 42; super === 42}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1288 PASS "use strict";function g(super){ "use strict"; }; true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1289 PASS (function(){"use strict";function g(super){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1290 PASS "use strict";/super/.test(function g(super){ "use strict"; }) threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1291 PASS (function(){"use strict";/super/.test(function g(super){ "use strict"; })}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a variable name..1292 PASS "use strict";try{}catch(super){}; true threw exception SyntaxError: Cannot use the reservedword 'super' as a catch variable name..1293 PASS (function(){"use strict";try{}catch(super){}; true}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a catch variable name..1294 PASS "use strict";function super(){ "use strict"; }; true threw exception SyntaxError: Cannot use the reservedword 'super' as a function name..1295 PASS (function(){"use strict";function super(){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the reservedword 'super' as a function name..1284 PASS "use strict";var super; true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1285 PASS (function(){"use strict";var super; true}); true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1286 PASS "use strict";var super = 42; super === 42 threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1287 PASS (function(){"use strict";var super = 42; super === 42}); true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1288 PASS "use strict";function g(super){ "use strict"; }; true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1289 PASS (function(){"use strict";function g(super){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1290 PASS "use strict";/super/.test(function g(super){ "use strict"; }) threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1291 PASS (function(){"use strict";/super/.test(function g(super){ "use strict"; })}); true threw exception SyntaxError: Cannot use the keyword 'super' as a variable name.. 1292 PASS "use strict";try{}catch(super){}; true threw exception SyntaxError: Cannot use the keyword 'super' as a catch variable name.. 1293 PASS (function(){"use strict";try{}catch(super){}; true}); true threw exception SyntaxError: Cannot use the keyword 'super' as a catch variable name.. 1294 PASS "use strict";function super(){ "use strict"; }; true threw exception SyntaxError: Cannot use the keyword 'super' as a function name.. 1295 PASS (function(){"use strict";function super(){ "use strict"; }; true}); true threw exception SyntaxError: Cannot use the keyword 'super' as a function name.. 1296 1296 PASS "use strict";({ "super": 42 }.super === 42) is true 1297 1297 PASS (function(){"use strict";({ "super": 42 }.super === 42)}); true is true -
trunk/LayoutTests/js/script-tests/class-syntax-call.js
r181490 r181618 1 //@ skip 1 description('Tests for calling the constructors of ES6 classes'); 2 2 3 shouldNotThrow('class A { constructor() {} }; window.A = A;new A');3 shouldNotThrow('class A { constructor() {} }; new A'); 4 4 shouldThrow('A()', '"TypeError: Cannot call a class constructor"'); 5 shouldNotThrow('class B extends A { constructor() { super() } }; window.B = B; new A');5 shouldNotThrow('class B extends A { constructor() { super() } }; new B'); 6 6 shouldThrow('B()', '"TypeError: Cannot call a class constructor"'); 7 7 shouldNotThrow('new (class { constructor() {} })()'); -
trunk/LayoutTests/js/script-tests/class-syntax-declaration.js
r179379 r181618 1 //@ skip 1 2 description('Tests for ES6 class syntax declarations'); 2 3 3 4 var constructorCallCount = 0; … … 30 31 shouldThrow("class X {", "'SyntaxError: Unexpected end of script'"); 31 32 shouldThrow("class X { ( }", "'SyntaxError: Unexpected token \\'(\\'. Expected an indentifier.'"); 32 should Throw("class X {}", "'SyntaxError: Class declaration without a constructor is not supported yet.'");33 shouldNotThrow("class X {}"); 33 34 shouldThrow("class X { constructor() {} constructor() {} }", "'SyntaxError: Cannot declare multiple constructors in a single class.'"); 34 35 shouldNotThrow("class X { constructor() {} static constructor() { return staticMethodValue; } }"); -
trunk/LayoutTests/js/script-tests/class-syntax-default-constructor.js
r181611 r181618 1 //@ skip2 1 3 2 description('Tests for ES6 class syntax default constructor'); 4 3 5 shouldBeTrue('class A { }; window.A = A;new A instanceof A');4 shouldBeTrue('class A { }; new A instanceof A'); 6 5 shouldThrow('A()', '"TypeError: Cannot call a class constructor"'); 7 6 shouldBeTrue('A.prototype.constructor instanceof Function'); … … 10 9 shouldThrow('B()', '"TypeError: Cannot call a class constructor"'); 11 10 shouldBe('B.prototype.constructor.name', '"B"'); 12 should NotBe('A', 'B');11 shouldBeTrue('A !== B'); 13 12 shouldBe('A.prototype.constructor', 'B.prototype.constructor'); 14 13 shouldBe('new (class extends (class { constructor(a, b) { return [a, b]; } }) {})(1, 2)', '[1, 2]'); -
trunk/LayoutTests/js/script-tests/class-syntax-expression.js
r179379 r181618 1 //@ skip 1 2 description('Tests for ES6 class syntax expressions'); 2 3 3 4 var constructorCallCount = 0; … … 30 31 shouldThrow("x = class {", "'SyntaxError: Unexpected end of script'"); 31 32 shouldThrow("x = class { ( }", "'SyntaxError: Unexpected token \\'(\\'. Expected an indentifier.'"); 32 should Throw("x = class {}", "'SyntaxError: Class declaration without a constructor is not supported yet.'");33 shouldNotThrow("x = class {}"); 33 34 shouldThrow("x = class { constructor() {} constructor() {} }", "'SyntaxError: Cannot declare multiple constructors in a single class.'"); 34 35 shouldNotThrow("x = class { constructor() {} static constructor() { return staticMethodValue; } }"); -
trunk/LayoutTests/js/script-tests/class-syntax-extends.js
r181293 r181618 1 //@ skip2 1 3 2 description('Tests for ES6 class syntax "extends"'); … … 27 26 shouldThrow('x = class extends', '"SyntaxError: Unexpected end of script"'); 28 27 shouldThrow('x = class extends Base {', '"SyntaxError: Unexpected end of script"'); 29 should Throw('x = class extends Base {}', '"SyntaxError: Class declaration without a constructor is not supported yet."');28 shouldNotThrow('x = class extends Base { }'); 30 29 shouldNotThrow('x = class extends Base { constructor() { } }'); 31 30 shouldBe('x.__proto__', 'Base'); … … 35 34 shouldThrow('x = class extends 3 { constructor() { } }; x.__proto__', '"TypeError: The superclass is not an object."'); 36 35 shouldThrow('x = class extends "abc" { constructor() { } }; x.__proto__', '"TypeError: The superclass is not an object."'); 37 evalAndLog('baseWithBadPrototype = class { constructor() { } }; baseWithBadPrototype.prototype = 3');36 shouldNotThrow('baseWithBadPrototype = class { constructor() { } }; baseWithBadPrototype.prototype = 3'); 38 37 shouldThrow('x = class extends baseWithBadPrototype { constructor() { } }', '"TypeError: The superclass\'s prototype is not an object."'); 39 evalAndLog('baseWithBadPrototype.prototype = "abc"');38 shouldNotThrow('baseWithBadPrototype.prototype = "abc"'); 40 39 shouldThrow('x = class extends baseWithBadPrototype { constructor() { } }', '"TypeError: The superclass\'s prototype is not an object."'); 41 40 shouldNotThrow('baseWithBadPrototype.prototype = null; x = class extends baseWithBadPrototype { constructor() { } }'); -
trunk/LayoutTests/js/script-tests/class-syntax-super.js
r181404 r181618 1 //@ skip2 1 3 2 description('Tests for ES6 class syntax "super"'); … … 18 17 callBaseMethod() { return super.baseMethod(); } 19 18 get callBaseMethodInGetter() { return super['baseMethod'](); } 20 set callBaseMethodInSetter() { window.valueInSetter = super.baseMethod(); }19 set callBaseMethodInSetter() { valueInSetter = super.baseMethod(); } 21 20 get baseMethodInGetterSetter() { return super.baseMethod; } 22 set baseMethodInGetterSetter() { window.valueInSetter = super['baseMethod']; }21 set baseMethodInGetterSetter() { valueInSetter = super['baseMethod']; } 23 22 static staticMethod() { return super.staticMethod(); } 24 23 } … … 54 53 shouldBe('x = { }; new (class extends Base { constructor() { return x } });', 'x'); 55 54 shouldBeFalse('x instanceof Base'); 56 shouldThrow('new (class extends Base { constructor() { } })', '" TypeError: Cannot return a non-object type in the constructor of a derived class."');55 shouldThrow('new (class extends Base { constructor() { } })', '"ReferenceError: Cannot access uninitialized variable."'); 57 56 shouldThrow('new (class extends Base { constructor() { return 1; } })', '"TypeError: Cannot return a non-object type in the constructor of a derived class."'); 58 57 shouldBe('new (class extends null { constructor() { return undefined } })', 'undefined'); 59 58 shouldBe('x = { }; new (class extends null { constructor() { return x } });', 'x'); 60 59 shouldBeTrue('x instanceof Object'); 61 shouldThrow('new (class extends null { constructor() { } })', '" TypeError: Cannot return a non-object type in the constructor of a derived class."');60 shouldThrow('new (class extends null { constructor() { } })', '"ReferenceError: Cannot access uninitialized variable."'); 62 61 shouldThrow('new (class extends null { constructor() { return 1; } })', '"TypeError: Cannot return a non-object type in the constructor of a derived class."'); 63 62 shouldNotThrow('new (class extends null { constructor() { super() } })'); -
trunk/LayoutTests/sputnik/Conformance/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.11-expected.txt
r158014 r181618 1 CONSOLE MESSAGE: line 76: SyntaxError: Unexpected use of reservedword 'extends'1 CONSOLE MESSAGE: line 76: SyntaxError: Unexpected keyword 'extends' 2 2 S7.5.3_A1.11 3 3 -
trunk/LayoutTests/sputnik/Conformance/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.27-expected.txt
r158014 r181618 1 CONSOLE MESSAGE: line 76: SyntaxError: Unexpected use of reserved word 'super'1 CONSOLE MESSAGE: line 76: SyntaxError: Cannot reference super. 2 2 S7.5.3_A1.27 3 3 -
trunk/LayoutTests/sputnik/Conformance/07_Lexical_Conventions/7.5_Tokens/7.5.3_Future_Reserved_Words/S7.5.3_A1.5-expected.txt
r158014 r181618 1 CONSOLE MESSAGE: line 76: SyntaxError: Unexpected use of reserved word 'class'1 CONSOLE MESSAGE: line 76: SyntaxError: Unexpected keyword 'class'. Class declaration is not allowed in a lexically nested statement. 2 2 S7.5.3_A1.5 3 3 -
trunk/Source/JavaScriptCore/ChangeLog
r181612 r181618 1 2015-03-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Enable ES6 classes by default 4 https://bugs.webkit.org/show_bug.cgi?id=142774 5 6 Reviewed by Gavin Barraclough. 7 8 Enabled the feature and unskipped tests. 9 10 * Configurations/FeatureDefines.xcconfig: 11 * tests/stress/class-syntax-no-loop-tdz.js: 12 * tests/stress/class-syntax-no-tdz-in-catch.js: 13 * tests/stress/class-syntax-no-tdz-in-conditional.js: 14 * tests/stress/class-syntax-no-tdz-in-loop-no-inline-super.js: 15 * tests/stress/class-syntax-no-tdz-in-loop.js: 16 * tests/stress/class-syntax-no-tdz.js: 17 * tests/stress/class-syntax-tdz-in-catch.js: 18 * tests/stress/class-syntax-tdz-in-conditional.js: 19 * tests/stress/class-syntax-tdz-in-loop.js: 20 * tests/stress/class-syntax-tdz.js: 21 1 22 2015-03-16 Joseph Pecoraro <pecoraro@apple.com> 2 23 -
trunk/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
r181502 r181618 45 45 ENABLE_CANVAS_PROXY = ; 46 46 ENABLE_CHANNEL_MESSAGING = ENABLE_CHANNEL_MESSAGING; 47 ENABLE_ES6_CLASS_SYNTAX = ;47 ENABLE_ES6_CLASS_SYNTAX = ENABLE_ES6_CLASS_SYNTAX; 48 48 ENABLE_CONTENT_FILTERING = ENABLE_CONTENT_FILTERING; 49 49 ENABLE_CSP_NEXT = ; -
trunk/Source/JavaScriptCore/tests/stress/class-syntax-no-loop-tdz.js
r181466 r181618 1 //@ skip2 1 3 2 class A { -
trunk/Source/JavaScriptCore/tests/stress/class-syntax-no-tdz-in-catch.js
r181466 r181618 1 //@ skip2 1 3 2 class A { -
trunk/Source/JavaScriptCore/tests/stress/class-syntax-no-tdz-in-conditional.js
r181466 r181618 1 //@ skip2 1 3 2 class A { -
trunk/Source/JavaScriptCore/tests/stress/class-syntax-no-tdz-in-loop-no-inline-super.js
r181466 r181618 1 //@ skip2 1 3 2 class A { -
trunk/Source/JavaScriptCore/tests/stress/class-syntax-no-tdz-in-loop.js
r181466 r181618 1 //@ skip2 1 3 2 class A { -
trunk/Source/JavaScriptCore/tests/stress/class-syntax-no-tdz.js
r181466 r181618 1 //@ skip2 1 3 2 class A { -
trunk/Source/JavaScriptCore/tests/stress/class-syntax-tdz-in-catch.js
r181466 r181618 1 //@ skip2 1 3 2 class A { -
trunk/Source/JavaScriptCore/tests/stress/class-syntax-tdz-in-conditional.js
r181466 r181618 1 //@ skip2 1 3 2 class A { -
trunk/Source/JavaScriptCore/tests/stress/class-syntax-tdz-in-loop.js
r181466 r181618 1 //@ skip2 1 3 2 class A { -
trunk/Source/JavaScriptCore/tests/stress/class-syntax-tdz.js
r181466 r181618 1 //@ skip2 1 3 2 class A { -
trunk/Source/WTF/ChangeLog
r181570 r181618 1 2015-03-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Enable ES6 classes by default 4 https://bugs.webkit.org/show_bug.cgi?id=142774 5 6 Reviewed by Gavin Barraclough. 7 8 * wtf/FeatureDefines.h: 9 1 10 2015-03-16 Csaba Osztrogonác <ossy@webkit.org> 2 11 -
trunk/Source/WTF/wtf/FeatureDefines.h
r181553 r181618 329 329 330 330 #if !defined(ENABLE_ES6_CLASS_SYNTAX) 331 #define ENABLE_ES6_CLASS_SYNTAX 0331 #define ENABLE_ES6_CLASS_SYNTAX 1 332 332 #endif 333 333 -
trunk/Source/WebCore/ChangeLog
r181617 r181618 1 2015-03-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Enable ES6 classes by default 4 https://bugs.webkit.org/show_bug.cgi?id=142774 5 6 Reviewed by Gavin Barraclough. 7 8 * Configurations/FeatureDefines.xcconfig: 9 1 10 2015-03-16 Simon Fraser <simon.fraser@apple.com> 2 11 -
trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig
r181502 r181618 45 45 ENABLE_CANVAS_PROXY = ; 46 46 ENABLE_CHANNEL_MESSAGING = ENABLE_CHANNEL_MESSAGING; 47 ENABLE_ES6_CLASS_SYNTAX = ;47 ENABLE_ES6_CLASS_SYNTAX = ENABLE_ES6_CLASS_SYNTAX; 48 48 ENABLE_CONTENT_FILTERING = ENABLE_CONTENT_FILTERING; 49 49 ENABLE_CSP_NEXT = ; -
trunk/Source/WebKit/mac/ChangeLog
r181587 r181618 1 2015-03-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Enable ES6 classes by default 4 https://bugs.webkit.org/show_bug.cgi?id=142774 5 6 Reviewed by Gavin Barraclough. 7 8 * Configurations/FeatureDefines.xcconfig: 9 1 10 2015-03-16 Brent Fulgham <bfulgham@apple.com> 2 11 -
trunk/Source/WebKit/mac/Configurations/FeatureDefines.xcconfig
r181502 r181618 45 45 ENABLE_CANVAS_PROXY = ; 46 46 ENABLE_CHANNEL_MESSAGING = ENABLE_CHANNEL_MESSAGING; 47 ENABLE_ES6_CLASS_SYNTAX = ;47 ENABLE_ES6_CLASS_SYNTAX = ENABLE_ES6_CLASS_SYNTAX; 48 48 ENABLE_CONTENT_FILTERING = ENABLE_CONTENT_FILTERING; 49 49 ENABLE_CSP_NEXT = ; -
trunk/Source/WebKit2/ChangeLog
r181607 r181618 1 2015-03-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Enable ES6 classes by default 4 https://bugs.webkit.org/show_bug.cgi?id=142774 5 6 Reviewed by Gavin Barraclough. 7 8 * Configurations/FeatureDefines.xcconfig: 9 1 10 2015-03-16 Conrad Shultz <conrad_shultz@apple.com> 2 11 -
trunk/Source/WebKit2/Configurations/FeatureDefines.xcconfig
r181502 r181618 45 45 ENABLE_CANVAS_PROXY = ; 46 46 ENABLE_CHANNEL_MESSAGING = ENABLE_CHANNEL_MESSAGING; 47 ENABLE_ES6_CLASS_SYNTAX = ;47 ENABLE_ES6_CLASS_SYNTAX = ENABLE_ES6_CLASS_SYNTAX; 48 48 ENABLE_CONTENT_FILTERING = ENABLE_CONTENT_FILTERING; 49 49 ENABLE_CSP_NEXT = ; -
trunk/Source/cmake/WebKitFeatures.cmake
r179687 r181618 28 28 WEBKIT_OPTION_DEFINE(ENABLE_CANVAS_PROXY "Toggle CanvasProxy support" OFF) 29 29 WEBKIT_OPTION_DEFINE(ENABLE_CHANNEL_MESSAGING "Toggle MessageChannel and MessagePort support" ON) 30 WEBKIT_OPTION_DEFINE(ENABLE_ES6_CLASS_SYNTAX "Toggle ES6 class syntax support" O FF)30 WEBKIT_OPTION_DEFINE(ENABLE_ES6_CLASS_SYNTAX "Toggle ES6 class syntax support" ON) 31 31 WEBKIT_OPTION_DEFINE(ENABLE_CONTENT_FILTERING "Toggle content filtering support" OFF) 32 32 WEBKIT_OPTION_DEFINE(ENABLE_CONTEXT_MENUS "Toggle Context Menu support" ON) -
trunk/Tools/ChangeLog
r181598 r181618 1 2015-03-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 Enable ES6 classes by default 4 https://bugs.webkit.org/show_bug.cgi?id=142774 5 6 Reviewed by Gavin Barraclough. 7 8 * Scripts/webkitperl/FeatureList.pm: 9 1 10 2015-03-16 Alexey Proskuryakov <ap@apple.com> 2 11 -
trunk/Tools/Scripts/webkitperl/FeatureList.pm
r179922 r181618 168 168 169 169 { option => "class-syntax", desc => "Toggle ES6 class syntax support", 170 define => "ENABLE_ES6_CLASS_SYNTAX", default => 0, value => \$classSyntax },170 define => "ENABLE_ES6_CLASS_SYNTAX", default => 1, value => \$classSyntax }, 171 171 172 172 { option => "csp-next", desc => "Toggle Content Security Policy 1.1 support",
Note:
See TracChangeset
for help on using the changeset viewer.