Class: RBelly::JS::FunctionPrototype

Inherits:
ObjectPrototype show all
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

#properties, #return, #value

Instance Method Summary collapse

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