mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:52:45 +00:00 
			
		
		
		
	LibJS: Move "strict mode" state to the call stack
Each call frame now knows whether it's executing in strict mode. It's no longer necessary to access the scope stack to find this mode.
This commit is contained in:
		
							parent
							
								
									f41b5a4535
								
							
						
					
					
						commit
						a007b3c379
					
				
					 15 changed files with 49 additions and 37 deletions
				
			
		|  | @ -47,6 +47,8 @@ public: | |||
|     virtual const FlyString& name() const override { return m_name; }; | ||||
|     virtual bool has_constructor() const { return false; } | ||||
| 
 | ||||
|     virtual bool is_strict_mode() const override; | ||||
| 
 | ||||
| protected: | ||||
|     NativeFunction(const FlyString& name, Object& prototype); | ||||
|     explicit NativeFunction(Object& prototype); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling