removed a now unused function, added a test
This commit is contained in:
parent
e5b0937461
commit
38f50f83ef
|
@ -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>,
|
||||
|
|
|
@ -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();
|
||||
|
||||
}}}
|
||||
|
||||
|
|
|
@ -3,3 +3,5 @@ RangeError
|
|||
// Check if scope is cleared on exception
|
||||
number
|
||||
undefined
|
||||
// Errors propagate through the stack
|
||||
RangeError
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue