Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: ad1302fe8297f628d73984d072f423c1f629fbfa https://github.com/WebKit/WebKit/commit/ad1302fe8297f628d73984d072f423c1f629fbfa Author: David Degazio <d_dega...@apple.com> Date: 2022-11-16 (Wed, 16 Nov 2022)
Changed paths: A JSTests/stress/numeric-getter-has-correct-name.js M LayoutTests/js/script-tests/function-toString-vs-name.js M Source/JavaScriptCore/parser/ASTBuilder.h Log Message: ----------- Add numeric identifier to generated getter name https://bugs.webkit.org/show_bug.cgi?id=247424 rdar://101940115 Reviewed by Justin Michaud. Adds a call to set the ECMA property name for a generated getter/setter when the property name is a numeric identifier. With this change, we include the property name in the name of the new getter/setter, i.e. 'get 0' instead of 'get '. * JSTests/stress/numeric-getter-has-correct-name.js: Added. (x.prototype.get 0): (x): * LayoutTests/js/script-tests/function-toString-vs-name.js: * Source/JavaScriptCore/parser/ASTBuilder.h: (JSC::ASTBuilder::createGetterOrSetterProperty): Canonical link: https://commits.webkit.org/256740@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes