gi / handlebars-ruby

A Ruby interface to the official JavaScript version of Handlebars.
MIT License
5 stars 0 forks source link

[#14] engine: return `Function` object instead of lambda #15

Closed gi closed 2 years ago

gi commented 2 years ago

When the result of the JavaScript call is a function (e.g. compile), create a new Function class instance instead of using a lambda.

This fixes an issue where the object finalizer was causing the Ruby VM to hold on to the engine's instance.

Fixes #14

codeclimate[bot] commented 2 years ago

Code Climate has analyzed commit e696f0ff and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (100% is the threshold).

This pull request will bring the total coverage in the repository to 100.0% (0.0% change).

View more on Code Climate.