Class: Rhino::ContextFactory

Inherits:
J::ContextFactory
  • Object
show all
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

Raises:



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