Class: RKelly::JS::FunctionPrototype
- Inherits:
-
ObjectPrototype
- Object
- Base
- ObjectPrototype
- RKelly::JS::FunctionPrototype
- Defined in:
- lib/rkelly/js/function_prototype.rb
Overview
This is the object protytpe ECMA-262 15.2.4
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(function) ⇒ FunctionPrototype
constructor
A new instance of FunctionPrototype.
Methods inherited from Base
#[], #[]=, #can_put?, #default_value, #delete, #has_property?, #returned?
Constructor Details
#initialize(function) ⇒ FunctionPrototype
Returns a new instance of FunctionPrototype.
6 7 8 9 10 11 |
# File 'lib/rkelly/js/function_prototype.rb', line 6 def initialize(function) super() self['Class'] = 'Object' self['constructor'] = function self['arguments'].value = nil end |