Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step Functions: Support Unicode and other valid javascript variable names. #420

Open
thantos opened this issue Aug 17, 2022 · 0 comments
Open

Comments

@thantos
Copy link
Collaborator

thantos commented Aug 17, 2022

https://mathiasbynens.be/notes/javascript-properties

  test("unicode variable names", () => {
    const { stack } = initStepFunctionApp();
    const definition = new StepFunction(stack, "machine1", async () => {
      var HECOMḚṮH = 42;
      const _ = "___";
      const $ = "$$";
      const ƒ = {
        π: Math.PI,
        ø: [],
        Ø: NaN,
        e: 2.7182818284590452353602874713527,
        root2: 2.7182818284590452353602874713527,
        α: 2.5029,
        δ: 4.6692,
        ζ: 1.2020569,
        φ: 1.61803398874,
        γ: 1.30357,
        K: 2.685452001,
        oo: 9999999999e999 * 9999999999e9999,
        A: 1.2824271291,
        C10: 0.12345678910111213141516171819202122232425252728293031323334353637,
        c: 299792458,
      };
      return { ƒ, out: `${HECOMḚṮH}${_}${$}` };
    }).definition;

    expect(normalizeDefinition(definition)).toMatchSnapshot();
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant