rubyjs / therubyrhino

Embed the Mozilla Rhino Javascript interpreter into Ruby
155 stars 40 forks source link

Typo in error message #16

Closed jpslav closed 12 years ago

jpslav commented 12 years ago

When trying to limit the number of instructions, I got the following exception message:

RuntimeError: setting an instruction_limit has no effect on this context, use Context.open(:restricted => true) to gain a restrictable instance

However, it looks like from the documentation (and from what actually worked) that :restricted should be :restrictable.

kares commented 12 years ago

right, thanks a lot ! 14420d225cf40c10052518f79989ed7fadcd7eef