Class: RBelly::JS::FunctionPrototype
- Inherits:
-
ObjectPrototype
- Object
- Base
- ObjectPrototype
- RBelly::JS::FunctionPrototype
- Defined in:
- lib/rbelly/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/rbelly/js/function_prototype.rb', line 6 def initialize(function) super() self['Class'] = 'Object' self['constructor'] = function self['arguments'].value = nil end |