mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibWeb: Embrace Interpreter::{argument_count(), argument(index)}
This commit is contained in:
parent
c00076de82
commit
2d503b20da
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