mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibWeb: Embrace Interpreter::{argument_count(), argument(index)}
This commit is contained in:
parent
c00076de82
commit
2d503b20da
Notes:
sideshowbarker
2024-07-19 06:17:23 +09:00
Author: https://github.com/linusg
Commit: 2d503b20da
Pull-request: https://github.com/SerenityOS/serenity/pull/2318
5 changed files with 42 additions and 55 deletions
|
@ -74,7 +74,7 @@ JS::Value HTMLCanvasElementWrapper::get_context(JS::Interpreter& interpreter)
|
|||
auto* impl = impl_from(interpreter);
|
||||
if (!impl)
|
||||
return {};
|
||||
auto context_type = interpreter.call_frame().arguments[0].to_string(interpreter);
|
||||
auto context_type = interpreter.argument(0).to_string(interpreter);
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
if (context_type != "2d")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue