removed a now unused function, added a test

This commit is contained in:
dowgird 2022-08-04 21:19:41 +02:00 committed by Adrian Wielgosik
parent e5b0937461
commit 38f50f83ef
4 changed files with 19 additions and 4 deletions

View File

@ -139,10 +139,6 @@ impl<'gc> ScriptObjectData<'gc> {
}
}
pub fn install_slot(&mut self) {
self.slots.push(Value::Undefined);
}
pub fn get_property_local(
&self,
multiname: &Multiname<'gc>,

View File

@ -34,6 +34,23 @@ try {
}
}
function triggerException() {
var v = new Vector.<String>();
v.fixed = true;
v.push("a"); // throws error
}
function try_passing() {
try {
triggerException();
} catch(foobar) {
// Like above, cut the part where the error messages agree between Ruffle and FP
trace(foobar.toString().slice(0,10));
}
}
trace("// Errors propagate through the stack");
try_passing();
}}}

View File

@ -3,3 +3,5 @@ RangeError
// Check if scope is cleared on exception
number
undefined
// Errors propagate through the stack
RangeError