mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibJS: Remove GlobalObject parameter from native functions
This commit is contained in:
parent
7b990c27a1
commit
b465f46e00
Notes:
sideshowbarker
2024-07-17 07:53:01 +09:00
Author: https://github.com/linusg
Commit: b465f46e00
Pull-request: https://github.com/SerenityOS/serenity/pull/14973
Reviewed-by: https://github.com/davidot ✅
77 changed files with 240 additions and 215 deletions
|
@ -122,7 +122,7 @@ void Worker::run_a_worker(AK::URL& url, EnvironmentSettingsObject& outside_setti
|
|||
// FIXME: This should be done with IDL
|
||||
u8 attr = JS::Attribute::Writable | JS::Attribute::Enumerable | JS::Attribute::Configurable;
|
||||
m_worker_scope->define_native_function(
|
||||
"postMessage", [this](auto& vm, auto&) {
|
||||
"postMessage", [this](auto& vm) {
|
||||
// This is the implementation of the function that the spawned worked calls
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/workers.html#dom-dedicatedworkerglobalscope-postmessage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue