mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Implement more things according to newer ECMAScript spec
* Fix parser error related with async arrow function * CodeBlock may have diffrent source code start position data(from `function` keyword) - new ECMAScript spec says we should make function source string from `function` keyword * Apply new spec on builtin Function constructor * AsyncFunctions must have correct initial properties Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
f232bba7d7
commit
ae35a576f5
25 changed files with 178 additions and 204 deletions
|
|
@ -28,7 +28,7 @@ namespace Escargot {
|
|||
class ScriptClassMethodFunctionObject : public ScriptFunctionObject {
|
||||
public:
|
||||
ScriptClassMethodFunctionObject(ExecutionState& state, CodeBlock* codeBlock, LexicalEnvironment* outerEnvironment, Object* homeObject)
|
||||
: ScriptFunctionObject(state, codeBlock, outerEnvironment, false, codeBlock->isGenerator())
|
||||
: ScriptFunctionObject(state, codeBlock, outerEnvironment, false, codeBlock->isGenerator(), codeBlock->isAsync())
|
||||
, m_homeObject(homeObject)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue