Class: Rhino::ContextFactory
- Defined in:
- lib/rhino/context.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#instruction_limit=(count) ⇒ Object
183 184 185 |
# File 'lib/rhino/context.rb', line 183 def instruction_limit=(count) @limit = count end |
#observeInstructionCount(cxt, count) ⇒ Object
179 180 181 |
# File 'lib/rhino/context.rb', line 179 def observeInstructionCount(cxt, count) raise RunawayScriptError, "script exceeded allowable instruction count" if count > @limit end |