Expose `Infinity` to AS3.

This commit is contained in:
David Wendt 2020-06-23 19:27:02 -04:00 committed by Mike Welsh
parent 5bb8c1836f
commit e5c8c5b340
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ pub fn construct_global_scope<'gc>(
constant(mc, gs, "", "undefined", Value::Undefined); constant(mc, gs, "", "undefined", Value::Undefined);
constant(mc, gs, "", "null", Value::Null); constant(mc, gs, "", "null", Value::Null);
constant(mc, gs, "", "NaN", NAN.into()); constant(mc, gs, "", "NaN", NAN.into());
constant(mc, gs, "", "Infinity", f64::INFINITY.into());
// package `flash.events` // package `flash.events`
let eventdispatcher_proto = let eventdispatcher_proto =