mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:12:45 +00:00 
			
		
		
		
	 48d8aff436
			
		
	
	
		48d8aff436
		
	
	
	
	
		
			
			This remained undetected for a long time as HeaderCheck is disabled by
default. This commit makes the following file compile again:
    // file: compile_me.cpp
    #include <LibJS/Runtime/StringPrototype.h>
    // That's it, this was enough to cause a compilation error.
Likewise for most other files touched by this commit.
		
	
			
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			589 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			589 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Forward.h>
 | |
| #include <LibJS/Forward.h>
 | |
| #include <LibJS/Heap/Handle.h>
 | |
| 
 | |
| namespace JS {
 | |
| 
 | |
| using ClassElementName = Variant<PropertyKey, PrivateName>;
 | |
| 
 | |
| // 6.2.10 The ClassFieldDefinition Record Specification Type, https://tc39.es/ecma262/#sec-classfielddefinition-record-specification-type
 | |
| struct ClassFieldDefinition {
 | |
|     ClassElementName name;                        // [[Name]]
 | |
|     Handle<ECMAScriptFunctionObject> initializer; // [[Initializer]]
 | |
| };
 | |
| 
 | |
| }
 |