Changeset 203315 in webkit
- Timestamp:
- Jul 15, 2016, 6:14:57 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 5 added
- 2 edited
-
ChangeLog (modified) (1 diff)
-
bytecompiler/BytecodeGenerator.cpp (modified) (1 diff)
-
tests/stress/catch-clause-should-be-under-tdz1.js (added)
-
tests/stress/catch-clause-should-be-under-tdz2.js (added)
-
tests/stress/catch-clause-should-be-under-tdz3.js (added)
-
tests/stress/catch-clause-should-be-under-tdz4.js (added)
-
tests/stress/catch-clause-should-be-under-tdz5.js (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r203303 r203315 1 2016-07-15 Mark Lam <mark.lam@apple.com> 2 3 Assertion failures and crashes with missing TDZ checks for catch-node bindings. 4 https://bugs.webkit.org/show_bug.cgi?id=158797 5 6 Reviewed by Saam Barati. 7 8 * bytecompiler/BytecodeGenerator.cpp: 9 (JSC::BytecodeGenerator::emitPushCatchScope): 10 (JSC::BytecodeGenerator::emitPopCatchScope): 11 * tests/stress/catch-clause-should-be-under-tdz1.js: Added. 12 * tests/stress/catch-clause-should-be-under-tdz2.js: Added. 13 * tests/stress/catch-clause-should-be-under-tdz3.js: Added. 14 * tests/stress/catch-clause-should-be-under-tdz4.js: Added. 15 * tests/stress/catch-clause-should-be-under-tdz5.js: Added. 16 1 17 2016-07-15 Geoffrey Garen <ggaren@apple.com> 2 18 -
trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r203006 r203315 3863 3863 void BytecodeGenerator::emitPushCatchScope(VariableEnvironment& environment) 3864 3864 { 3865 pushLexicalScopeInternal(environment, TDZCheckOptimization::Optimize, NestedScopeType::IsNotNested, nullptr, TDZRequirement:: NotUnderTDZ, ScopeType::CatchScope, ScopeRegisterType::Block);3865 pushLexicalScopeInternal(environment, TDZCheckOptimization::Optimize, NestedScopeType::IsNotNested, nullptr, TDZRequirement::UnderTDZ, ScopeType::CatchScope, ScopeRegisterType::Block); 3866 3866 } 3867 3867
Note:
See TracChangeset
for help on using the changeset viewer.