Skip to content

Allow using strict and compat together #1741 - #1955

Closed
smmhatami wants to merge 1 commit into
handlebars-lang:masterfrom
smmhatami:new_issue2
Closed

smmhatami wants to merge 1 commit into
handlebars-lang:masterfrom
smmhatami:new_issue2

Conversation

@smmhatami

Copy link
Copy Markdown
Contributor

This is a fix to solve Issue 1741. Resolves #1741. just checked if obj is really an object at the errors occurrence line specified in the issue. I hope it helps.

@jaylinski jaylinski self-assigned this Jun 29, 2023
@jaylinski

Copy link
Copy Markdown
Member

Note: failing test was not caused by this PR and fixed in #1964. Needs rebase.

@jaylinski jaylinski added this to the 4.7.9 milestone Aug 1, 2023
Signed-off-by: Seyed Mohammad Mahdi Hatami <hatamik7@gmail.com>
@jaylinski

Copy link
Copy Markdown
Member

@smmhatami I added a test for your PR, but it seems that combining compat and strict compiler-options causes another issue, because the template in the test doesn't compile correctly. I'm not yet sure why.

@jaylinski jaylinski changed the title handled error for using strict and compat together #1741 Allow using strict and compat together #1741 Aug 31, 2023
@theodorejb

Copy link
Copy Markdown
Contributor

I created PR #2150 which I believe fixes the compilation of strict + compat correctly.

@theodorejb

Copy link
Copy Markdown
Contributor

This can be closed now that #2150 was merged.

@jaylinski jaylinski closed this Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception when the strict and compat compiler options are used together

3 participants