mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
Instead of passing a function it is also possible to pass a string, which is then evaluated as a classic script. This means we now support the following example from the "timer initialization steps", step 16 - except that it runs the timers in reverse order, so the `log` result is `"TWO ONE "`. https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timer-initialisation-steps var log = ''; function logger(s) { log += s + ' '; } setTimeout({ toString: function () { setTimeout("logger('ONE')", 100); return "logger('TWO')"; } }, 100); |
||
---|---|---|
.. | ||
CSSRuleWrapperFactory.cpp | ||
CSSRuleWrapperFactory.h | ||
CSSStyleDeclarationWrapperCustom.cpp | ||
EventListenerWrapper.cpp | ||
EventListenerWrapper.h | ||
EventTargetWrapperFactory.cpp | ||
EventTargetWrapperFactory.h | ||
EventWrapperFactory.cpp | ||
EventWrapperFactory.h | ||
ExceptionOrUtils.h | ||
IDLAbstractOperations.cpp | ||
IDLAbstractOperations.h | ||
ImageConstructor.cpp | ||
ImageConstructor.h | ||
LocationObject.cpp | ||
LocationObject.h | ||
MainThreadVM.cpp | ||
MainThreadVM.h | ||
NavigatorObject.cpp | ||
NavigatorObject.h | ||
NodeWrapperFactory.cpp | ||
NodeWrapperFactory.h | ||
Replaceable.h | ||
ScriptExecutionContext.cpp | ||
ScriptExecutionContext.h | ||
WindowObject.cpp | ||
WindowObject.h | ||
WindowObjectHelper.h | ||
Wrappable.cpp | ||
Wrappable.h | ||
Wrapper.h |