-
oliver@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=123112 Reviewed by Michael Saboff. Add support for computed property names to the parser. * bytecompiler/NodesCodegen.cpp: (JSC::PropertyListNode::emitBytecode): * parser/ASTBuilder.h: (JSC::ASTBuilder::createProperty): (JSC::ASTBuilder::getName): * parser/NodeConstructors.h: (JSC::PropertyNode::PropertyNode): * parser/Nodes.h: (JSC::PropertyNode::expressionName): (JSC::PropertyNode::name): * parser/Parser.cpp: (JSC::::parseProperty): (JSC::::parseStrictObjectLiteral): * parser/SyntaxChecker.h: (JSC::SyntaxChecker::Property::Property): (JSC::SyntaxChecker::createProperty): (JSC::SyntaxChecker::operatorStackPop): LayoutTests: Support expression property names in object literals https://bugs.webkit.org/show_bug.cgi?id=123112 Reviewed by Michael Saboff. Add tests * js/basic-computed-property-name-expected.txt: Added. * js/basic-computed-property-name.html: Added. * js/parser-syntax-check-expected.txt: * js/script-tests/basic-computed-property-name.js: Added. (a.string_appeared_here.runTest): * js/script-tests/parser-syntax-check.js: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
72d3832f