mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
LibJS: Use VM::exception() instead of Interpreter::exception() a bunch
There's a lot more of these things to fix. We'll also want to move from passing Interpreter& around to VM& instead wherever that is enough.
This commit is contained in:
parent
d74bb87d46
commit
676cb87a8f
5 changed files with 79 additions and 79 deletions
|
@ -70,7 +70,7 @@ bool Uint8ClampedArray::put_by_index(u32 property_index, Value value)
|
|||
// FIXME: Use attributes
|
||||
ASSERT(property_index < m_length);
|
||||
auto number = value.to_i32(interpreter());
|
||||
if (interpreter().exception())
|
||||
if (vm().exception())
|
||||
return {};
|
||||
m_data[property_index] = clamp(number, 0, 255);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue