mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Disallow using arguments variable in class field when using eval function
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
109d199302
commit
b791bd9850
10 changed files with 30 additions and 9 deletions
|
|
@ -214,7 +214,7 @@ void CodeCacheWriter::storeInterpretedCodeBlock(InterpretedCodeBlock* codeBlock)
|
|||
m_buffer.put(codeBlock->m_functionBodyBlockIndex);
|
||||
m_buffer.put(codeBlock->m_lexicalBlockIndexFunctionLocatedIn);
|
||||
|
||||
m_buffer.ensureSize(29 * sizeof(bool));
|
||||
m_buffer.ensureSize(30 * sizeof(bool));
|
||||
m_buffer.put(codeBlock->m_isFunctionNameSaveOnHeap);
|
||||
m_buffer.put(codeBlock->m_isFunctionNameExplicitlyDeclared);
|
||||
m_buffer.put(codeBlock->m_canUseIndexedVariableStorage);
|
||||
|
|
@ -244,6 +244,7 @@ void CodeCacheWriter::storeInterpretedCodeBlock(InterpretedCodeBlock* codeBlock)
|
|||
m_buffer.put(codeBlock->m_hasParameterOtherThanIdentifier);
|
||||
m_buffer.put(codeBlock->m_allowSuperCall);
|
||||
m_buffer.put(codeBlock->m_allowSuperProperty);
|
||||
m_buffer.put(codeBlock->m_allowArguments);
|
||||
|
||||
// InterpretedCodeBlockWithRareData
|
||||
if (UNLIKELY(hasRareData)) {
|
||||
|
|
@ -734,6 +735,7 @@ InterpretedCodeBlock* CodeCacheReader::loadInterpretedCodeBlock(Context* context
|
|||
codeBlock->m_hasParameterOtherThanIdentifier = m_buffer.get<bool>();
|
||||
codeBlock->m_allowSuperCall = m_buffer.get<bool>();
|
||||
codeBlock->m_allowSuperProperty = m_buffer.get<bool>();
|
||||
codeBlock->m_allowArguments = m_buffer.get<bool>();
|
||||
|
||||
// InterpretedCodeBlockWithRareData
|
||||
if (UNLIKELY(hasRareData)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue