1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

LibJS: Move additional notes to spec comments onto their own line

Having all spec comments verbatim on their own line with no additions
made by us will make it easier to automate comparing said comments to
their current spec counterparts.
This commit is contained in:
Linus Groh 2022-04-11 21:32:37 +01:00
parent 90f14de1e9
commit 24d772af7c
5 changed files with 14 additions and 7 deletions

View file

@ -50,12 +50,14 @@ public:
// 2. Let newContext be a new execution context.
auto& new_context = interpreter->m_global_execution_context;
// 3. Set the Function of newContext to null. (This is done for us when the execution context is constructed)
// 3. Set the Function of newContext to null.
// NOTE: This was done during execution context construction.
// 4. Set the Realm of newContext to realm.
new_context.realm = realm;
// 5. Set the ScriptOrModule of newContext to null. (This was done during execution context construction)
// 5. Set the ScriptOrModule of newContext to null.
// NOTE: This was done during execution context construction.
// 6. Push newContext onto the execution context stack; newContext is now the running execution context.
vm.push_execution_context(new_context);