In #147, changes were made to get Handlebars to throw errors correctly, with a test. However, in the case where Handlebars was used with a global layout provided, things were still broken. The withLayout helper threw an error directly in the middle of callback code. This PR provides a test demonstrating the failure along with the fix of that mistake.
In #147, changes were made to get Handlebars to throw errors correctly, with a test. However, in the case where Handlebars was used with a global layout provided, things were still broken. The withLayout helper threw an error directly in the middle of callback code. This PR provides a test demonstrating the failure along with the fix of that mistake.
Checklist
npm run test
andnpm run benchmark