mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
LibWeb: Make window.performance replaceable and configurable
Required by Discord, which polyfills it by taking the existing native object, polyfilling missing functions and setting window.performance to it. This is a hard requirement as this is done in strict mode with no try/catch and thus causes their JavaScript to stop progressing.
This commit is contained in:
parent
ae349ec6a8
commit
5ebf444199
2 changed files with 21 additions and 1 deletions
|
@ -89,6 +89,8 @@ private:
|
|||
JS_DECLARE_NATIVE_FUNCTION(name_setter);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(performance_getter);
|
||||
JS_DECLARE_NATIVE_FUNCTION(performance_setter);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(history_getter);
|
||||
JS_DECLARE_NATIVE_FUNCTION(screen_getter);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue