@scriptc/compiler 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2612,12 +2612,14 @@ export function emitExpr(E, e) {
2612
2612
  return finish(`scr_btoa(${arg(0)})`);
2613
2613
  case "str.b64Missing":
2614
2614
  return finish(`scr_b64_missing_arg()`);
2615
- // The fraction-digits-free Number.prototype formatters
2616
- // (scr_lib.c). Borrow nothing; results +1; no throw.
2615
+ // Number.prototype formatters (scr_lib.c). Borrow nothing;
2616
+ // successful results +1; explicit toFixed may throw RangeError.
2617
2617
  case "num.toExponential":
2618
2618
  return finish(`scr_num_to_exponential(${arg(0)})`);
2619
2619
  case "num.toFixed0":
2620
2620
  return finish(`scr_num_to_fixed0(${arg(0)})`);
2621
+ case "num.toFixed":
2622
+ return finish(`scr_num_to_fixed(${arg(0)}, ${arg(1)})`);
2621
2623
  // Object.is over two numbers — SameValue on doubles. No throw.
2622
2624
  case "num.sameValue":
2623
2625
  return finish(`scr_num_same_value(${arg(0)}, ${arg(1)})`);