You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -247,10 +247,7 @@ JS::VM& main_thread_vm()
247
247
} else {
248
248
// FIXME: We need to setup a dummy execution context in case a JS::NativeFunction is called when processing the job.
249
249
// This is because JS::NativeFunction::call excepts something to be on the execution context stack to be able to get the caller context to initialize the environment.
250
-
// Since this requires pushing an execution context onto the stack, it also requires a global object. The only thing we can get a global object from in this case is the script or module.
251
-
// To do this, we must assume script or module is not Empty. We must also assume that it is a Script Record for now as we don't currently run modules.
252
250
// Do note that the JS spec gives _no_ guarantee that the execution context stack has something on it if HostEnqueuePromiseJob was called with a null realm: https://tc39.es/ecma262/#job-preparedtoevaluatecode
0 commit comments