Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

remove hardcoded strict mode value #331

Merged
merged 1 commit into from
Jun 27, 2016
Merged

remove hardcoded strict mode value #331

merged 1 commit into from
Jun 27, 2016

Conversation

hzoo
Copy link
Member

@hzoo hzoo commented Jun 26, 2016

In babylon

this.strict = options.strictMode === false ? false : options.sourceType === "module";

So can rely on sourceType as the backup

https://github.com/babel/babylon/blob/cde17b33bd6a42fe73289873e3ef62bad2884481/src/tokenizer/state.js#L9

@danez
Copy link
Member

danez commented Jun 27, 2016

👍

@danez
Copy link
Member

danez commented Jun 27, 2016

I always thought we set the correct strictmode option, but that was always only for eslint and not for babylon. :) Good catch.

@danez danez merged commit 2d72002 into master Jun 27, 2016
@danez danez deleted the strict-mode branch June 27, 2016 05:54
nicolo-ribaudo pushed a commit to babel/babel that referenced this pull request Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants