Changeset 181831 in webkit
- Timestamp:
- Mar 21, 2015, 9:08:23 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/js/class-syntax-declaration-expected.txt (modified) (1 diff)
-
LayoutTests/js/class-syntax-expression-expected.txt (modified) (1 diff)
-
LayoutTests/js/class-syntax-super-expected.txt (modified) (1 diff)
-
LayoutTests/js/script-tests/class-syntax-declaration.js (modified) (1 diff)
-
LayoutTests/js/script-tests/class-syntax-expression.js (modified) (1 diff)
-
LayoutTests/js/script-tests/class-syntax-super.js (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/jit/JITPropertyAccess.cpp (modified) (1 diff)
-
Source/JavaScriptCore/jit/JITPropertyAccess32_64.cpp (modified) (1 diff)
-
Source/JavaScriptCore/parser/Parser.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r181830 r181831 1 2015-03-21 Joseph Pecoraro <pecoraro@apple.com> 2 3 Fix a typo in Parser error message 4 https://bugs.webkit.org/show_bug.cgi?id=142942 5 6 Reviewed by Alexey Proskuryakov. 7 8 * js/class-syntax-declaration-expected.txt: 9 * js/class-syntax-expression-expected.txt: 10 * js/class-syntax-super-expected.txt: 11 * js/script-tests/class-syntax-declaration.js: 12 * js/script-tests/class-syntax-expression.js: 13 * js/script-tests/class-syntax-super.js: 14 1 15 2015-03-21 Brent Fulgham <bfulgham@apple.com> 2 16 -
trunk/LayoutTests/js/class-syntax-declaration-expected.txt
r181618 r181831 18 18 PASS class threw exception SyntaxError: Unexpected end of script. 19 19 PASS class X { threw exception SyntaxError: Unexpected end of script. 20 PASS class X { ( } threw exception SyntaxError: Unexpected token '('. Expected an i ndentifier..20 PASS class X { ( } threw exception SyntaxError: Unexpected token '('. Expected an identifier.. 21 21 PASS class X {} did not throw exception. 22 22 PASS class X { constructor() {} constructor() {} } threw exception SyntaxError: Cannot declare multiple constructors in a single class.. -
trunk/LayoutTests/js/class-syntax-expression-expected.txt
r181618 r181831 18 18 PASS x = class threw exception SyntaxError: Unexpected end of script. 19 19 PASS x = class { threw exception SyntaxError: Unexpected end of script. 20 PASS x = class { ( } threw exception SyntaxError: Unexpected token '('. Expected an i ndentifier..20 PASS x = class { ( } threw exception SyntaxError: Unexpected token '('. Expected an identifier.. 21 21 PASS x = class {} did not throw exception. 22 22 PASS x = class { constructor() {} constructor() {} } threw exception SyntaxError: Cannot declare multiple constructors in a single class.. -
trunk/LayoutTests/js/class-syntax-super-expected.txt
r181618 r181831 14 14 PASS Derived.staticMethod() is "base3" 15 15 PASS (new SecondDerived).chainMethod() is ["base", "derived", "secondDerived"] 16 PASS x = class extends Base { constructor() { super(); } super() {} } threw exception SyntaxError: Unexpected keyword 'super'. Expected an i ndentifier..16 PASS x = class extends Base { constructor() { super(); } super() {} } threw exception SyntaxError: Unexpected keyword 'super'. Expected an identifier.. 17 17 PASS x = class extends Base { constructor() { super(); } method() { super() } } threw exception SyntaxError: Cannot call super() outside of a class constructor.. 18 18 PASS x = class extends Base { constructor() { super(); } method() { super } } threw exception SyntaxError: Cannot reference super.. -
trunk/LayoutTests/js/script-tests/class-syntax-declaration.js
r181618 r181831 30 30 shouldThrow("class", "'SyntaxError: Unexpected end of script'"); 31 31 shouldThrow("class X {", "'SyntaxError: Unexpected end of script'"); 32 shouldThrow("class X { ( }", "'SyntaxError: Unexpected token \\'(\\'. Expected an i ndentifier.'");32 shouldThrow("class X { ( }", "'SyntaxError: Unexpected token \\'(\\'. Expected an identifier.'"); 33 33 shouldNotThrow("class X {}"); 34 34 shouldThrow("class X { constructor() {} constructor() {} }", "'SyntaxError: Cannot declare multiple constructors in a single class.'"); -
trunk/LayoutTests/js/script-tests/class-syntax-expression.js
r181618 r181831 30 30 shouldThrow("x = class", "'SyntaxError: Unexpected end of script'"); 31 31 shouldThrow("x = class {", "'SyntaxError: Unexpected end of script'"); 32 shouldThrow("x = class { ( }", "'SyntaxError: Unexpected token \\'(\\'. Expected an i ndentifier.'");32 shouldThrow("x = class { ( }", "'SyntaxError: Unexpected token \\'(\\'. Expected an identifier.'"); 33 33 shouldNotThrow("x = class {}"); 34 34 shouldThrow("x = class { constructor() {} constructor() {} }", "'SyntaxError: Cannot declare multiple constructors in a single class.'"); -
trunk/LayoutTests/js/script-tests/class-syntax-super.js
r181618 r181831 38 38 shouldBe('Derived.staticMethod()', '"base3"'); 39 39 shouldBe('(new SecondDerived).chainMethod()', '["base", "derived", "secondDerived"]'); 40 shouldThrow('x = class extends Base { constructor() { super(); } super() {} }', '"SyntaxError: Unexpected keyword \'super\'. Expected an i ndentifier."');40 shouldThrow('x = class extends Base { constructor() { super(); } super() {} }', '"SyntaxError: Unexpected keyword \'super\'. Expected an identifier."'); 41 41 shouldThrow('x = class extends Base { constructor() { super(); } method() { super() } }', 42 42 '"SyntaxError: Cannot call super() outside of a class constructor."'); -
trunk/Source/JavaScriptCore/ChangeLog
r181829 r181831 1 2015-03-21 Joseph Pecoraro <pecoraro@apple.com> 2 3 Fix a typo in Parser error message 4 https://bugs.webkit.org/show_bug.cgi?id=142942 5 6 Reviewed by Alexey Proskuryakov. 7 8 * jit/JITPropertyAccess.cpp: 9 (JSC::JIT::emitSlow_op_resolve_scope): 10 * jit/JITPropertyAccess32_64.cpp: 11 (JSC::JIT::emitSlow_op_resolve_scope): 12 * parser/Parser.cpp: 13 (JSC::Parser<LexerType>::parseClass): 14 Fix a common identifier typo. 15 1 16 2015-03-21 Joseph Pecoraro <pecoraro@apple.com> 2 17 -
trunk/Source/JavaScriptCore/jit/JITPropertyAccess.cpp
r177667 r181831 638 638 linkSlowCase(iter); 639 639 int32_t scope = currentInstruction[2].u.operand; 640 int32_t i ndentifierIndex = currentInstruction[3].u.operand;641 callOperation(operationResolveScope, dst, scope, i ndentifierIndex);640 int32_t identifierIndex = currentInstruction[3].u.operand; 641 callOperation(operationResolveScope, dst, scope, identifierIndex); 642 642 } 643 643 -
trunk/Source/JavaScriptCore/jit/JITPropertyAccess32_64.cpp
r175998 r181831 662 662 linkSlowCase(iter); 663 663 int32_t scope = currentInstruction[2].u.operand; 664 int32_t i ndentifierIndex = currentInstruction[3].u.operand;665 callOperation(operationResolveScope, dst, scope, i ndentifierIndex);664 int32_t identifierIndex = currentInstruction[3].u.operand; 665 callOperation(operationResolveScope, dst, scope, identifierIndex); 666 666 } 667 667 -
trunk/Source/JavaScriptCore/parser/Parser.cpp
r181829 r181831 1514 1514 next(); 1515 1515 1516 matchOrFail(IDENT, "Expected an i ndentifier");1516 matchOrFail(IDENT, "Expected an identifier"); 1517 1517 1518 1518 const CommonIdentifiers& propertyNames = *m_vm->propertyNames;
Note:
See TracChangeset
for help on using the changeset viewer.