message: Refactor emscripten globals
diff: @@ -118,37 +118,28 @@ pub struct EmscriptenGlobals {
  impl EmscriptenGlobals {
  pub fn new() -> Self {
  - let mut data = Vec::new();
  -
  - data.push((
  + let mut data = vec![
  + (
  "STACKTOP".into(),
  LocalGlobal { data: stacktop(STATIC_BUMP) as _ },
  - GlobalDesc { mutable: false, ty: I32 }),
  - );
  -
  - data.push((
  - "DYNAMICTOP_PTR".into(),
  - LocalGlobal { data: dynamictop_ptr(STATIC_BUMP) as _ },
  - GlobalDesc { mutable: false, ty: I32 }),
  - );
  -
  - data.push((
  + GlobalDesc { mutable: false, ty: I32 }
  + ),
  + (
  "Infinity".into(),
  LocalGlobal { data: std::f64::INFINITY.to_bits() },
  GlobalDesc { mutable: false, ty: F64 },
  - ));
  -
  - data.push((
  + ),
  + (
  "NaN".into(),
  LocalGlobal { data: std::f64::NAN.to_bits() },
  GlobalDesc { mutable: false, ty: F64 },
  - ));
  -
  - data.push((
  + ),
  + (
  "tableBase".into(),
  LocalGlobal { data: 0 },
  GlobalDesc { mutable: false, ty: I32 },
  - ));
  + ),
  + ];
  Self {
  data,
  