haikuwebkit/LayoutTests/js/object-literal-shorthand-co...

11 lines
275 B
HTML
Raw Permalink Normal View History

Source/JavaScriptCore: ES6: Object Literal Extensions - Shorthand Properties (Identifiers) https://bugs.webkit.org/show_bug.cgi?id=142353 Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-03-05 Reviewed by Geoffrey Garen. * parser/Parser.cpp: (JSC::Parser<LexerType>::parseProperty): Parsing an identifier property followed by a comma or end brace treat as a shorthand property and create a property that has the same property name as the identifier name and value of a variable with that identifier. Otherwise, fall through to getter/setter parsing. LayoutTests: Web Inspector: Follow-up fixes to ObjectTreeBaseTreeElement https://bugs.webkit.org/show_bug.cgi?id=142367 Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-03-05 Reviewed by Geoffrey Garen. * js/object-literal-shorthand-construction-expected.txt: Added. * js/object-literal-shorthand-construction.html: Added. * js/script-tests/object-literal-shorthand-construction.js: Added. (equivalent): (testShorthandConstructionEquivalent): (testShorthandConstructionNotEquivalent): Tests specifically for new literal construction with shorthands. * sputnik/Conformance/12_Statement/12.1_Block/S12.1_A4_T1-expected.txt: * sputnik/Conformance/12_Statement/12.1_Block/S12.1_A4_T2-expected.txt: * sputnik/Conformance/12_Statement/12.6_Iteration_Statements/12.6.4_The_for_in_Statement/S12.6.4_A15-expected.txt: These tests use object literal shorthand construction syntax and expected failures. The tests now fail differently, so just rebase their results. Canonical link: https://commits.webkit.org/160409@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181121 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-03-06 01:16:25 +00:00
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<script src="script-tests/object-literal-shorthand-construction.js"></script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>