Expose `Infinity` to AS3.
This commit is contained in:
parent
5bb8c1836f
commit
e5c8c5b340
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue