From e5c8c5b3408dc63511dd5c60295c19c7ac02690e Mon Sep 17 00:00:00 2001 From: David Wendt Date: Tue, 23 Jun 2020 19:27:02 -0400 Subject: [PATCH] Expose `Infinity` to AS3. --- core/src/avm2/globals.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/avm2/globals.rs b/core/src/avm2/globals.rs index e920762d7..837d94c19 100644 --- a/core/src/avm2/globals.rs +++ b/core/src/avm2/globals.rs @@ -135,6 +135,7 @@ pub fn construct_global_scope<'gc>( constant(mc, gs, "", "undefined", Value::Undefined); constant(mc, gs, "", "null", Value::Null); constant(mc, gs, "", "NaN", NAN.into()); + constant(mc, gs, "", "Infinity", f64::INFINITY.into()); // package `flash.events` let eventdispatcher_proto =