Skip to content

try to preserve local function names for better stack trace #348

Closed
@bobzhang

Description

@bobzhang
let g y =
  let h x = x + y 
  in  h

generated code:

function g(y) {
  return function (x) {
    return x + y | 0;
  };
}

it would better to have

function g(y) {
  return function h(x) {
    return x + y | 0;
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions