Changeset 278510 in webkit
- Timestamp:
- Jun 4, 2021 4:44:21 PM (14 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
JSTests/ChangeLog (modified) (1 diff)
-
JSTests/stress/private-in-error.js (added)
-
JSTests/stress/private-static-method-declaration-error.js (added)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/parser/Parser.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r278473 r278510 1 2021-06-04 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Private static method should define privateClassBrandIdentifier in class-scope 4 https://bugs.webkit.org/show_bug.cgi?id=226656 5 rdar://78313139 6 7 Reviewed by Keith Miller. 8 9 * stress/private-in-error.js: Added. 10 (shouldThrow): 11 (x): 12 (prototype.foo): 13 * stress/private-static-method-declaration-error.js: Added. 14 (shouldThrow): 15 (prototype.get x): 16 (prototype.foo.D.a): 17 (prototype.foo.D.prototype.b): 18 (prototype.foo.D): 19 (prototype.foo): 20 1 21 2021-06-04 Mark Lam <mark.lam@apple.com> 2 22 -
trunk/Source/JavaScriptCore/ChangeLog
r278476 r278510 1 2021-06-04 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Private static method should define privateClassBrandIdentifier in class-scope 4 https://bugs.webkit.org/show_bug.cgi?id=226656 5 rdar://78313139 6 7 Reviewed by Keith Miller. 8 9 We accidentally made `declaresStaticPrivateMethod` always `false`. 10 This patch fixes that so that we properly define privateClassBrandIdentifier field in the class-scope if static-private-method is defined. 11 12 * parser/Parser.cpp: 13 (JSC::Parser<LexerType>::parseClass): 14 1 15 2021-06-04 Filip Pizlo <fpizlo@apple.com> 2 16 -
trunk/Source/JavaScriptCore/parser/Parser.cpp
r278253 r278510 3034 3034 3035 3035 if (tag == ClassElementTag::Static) 3036 declaresStaticPrivate Accessor= true;3036 declaresStaticPrivateMethod = true; 3037 3037 else 3038 3038 declaresPrivateMethod = true;
Note: See TracChangeset
for help on using the changeset viewer.