Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Support "simple" Closure compilation mode #312

Open

Description

@ochafik

The Closure Compiler can almost consume the output of DDC with --language_in=ECMASCRIPT6_STRICT -O SIMPLE (and output ES5 code).

Here are some blockers:

Other annoying non-blockers:

(Note: "ADVANCED" optimizations are filed under #311)

Activity

  1. changed the title [-]Produce output that passes "simple" Closure compilation mode[/-] [+]Support "simple" Closure compilation mode[/+] on Sep 9, 2015
  2. jmesserly commented on Sep 9, 2015

    @jmesserly
    Contributor

    thanks for collecting all of these!

    Cannot (re)define local Object, Error classes in core.js. This can be worked around by attaching the classes to some namespace (here core is the current exports var):

    Nice! Yeah that would work & also would simplify our JsSymbol/Symbol issues.

    let often makes the compiler to crash (google/closure-compiler#1124). Could be somehow worked around by using var everywhere, but then the hand-written parts of the runtime are an issue.

    note: let is needed for correct behavior (e.g. closures in loops), so we can't compile to var as a workaround. Hopefully they can get that crashing bug fixed...

  3. self-assigned this
    on Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions