Skip to content

Using -s STRICT to disable more legacy/compatibility behaviour #8317

Closed

Description

@sbc100

Starting with #8261 I've been looking at disabling legacy / compatibility behaviour in s STRICT mode.

I hope to using this as a way to evolve the toolchain while at the same time allowing users who want backwards compatibility to continue as normal. This seems like a good match for what strict means in JS. i.e. dis-allow some old stuff and force me to use some new stuff.

I wanted to raise this with @juj after our discussion about backwards compatibility on #8034. I noticed that -s MINIMAL_RUNTIME currently implies -s STRICT. Perhaps we want to separate these two if -s STRICT is going to continue to gain more significance?

I looks like - STRICT=1 has also come to mean "don't include all default JS libraries", and perhaps that is why MINIMAL_RUNTIME defines -s STRICT? Perhaps we want to separate out that settings with some kind of new setting which means something like "NO_AUTO_LIBS".. perhaps we could also have it apply the native libraries too?

Activity

  1. stale commented on Mar 19, 2020

    @stale

    This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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