1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09:00

LibJS: Implement import.meta for bytecode

This commit is contained in:
Gabriel Dinner-David 2023-07-11 23:07:12 -04:00 committed by Andreas Kling
parent a1692931af
commit d29bd55b48
Notes: sideshowbarker 2024-07-17 09:48:50 +09:00
8 changed files with 78 additions and 49 deletions

View file

@ -26,7 +26,7 @@ public:
virtual ThrowCompletionOr<ResolvedBinding> resolve_export(VM& vm, DeprecatedFlyString const& export_name, Vector<ResolvedBinding> resolve_set = {}) override;
Object* import_meta() { return m_import_meta; }
void set_import_meta(Badge<MetaProperty>, Object* import_meta) { m_import_meta = import_meta; }
void set_import_meta(Badge<VM>, Object* import_meta) { m_import_meta = import_meta; }
protected:
virtual ThrowCompletionOr<void> initialize_environment(VM& vm) override;