diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/NativeFunction.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/NativeFunction.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/NativeFunction.cpp b/Libraries/LibJS/Runtime/NativeFunction.cpp index 070632bef0..6d350ee9af 100644 --- a/Libraries/LibJS/Runtime/NativeFunction.cpp +++ b/Libraries/LibJS/Runtime/NativeFunction.cpp @@ -68,4 +68,9 @@ Value NativeFunction::construct(Interpreter&) return {}; } +LexicalEnvironment* NativeFunction::create_environment() +{ + return interpreter().heap().allocate<LexicalEnvironment>(global_object(), LexicalEnvironment::EnvironmentRecordType::Function); +} + } |