class Minjs::ECMA262::ExpTypeof

Class of the Typeof operator expression element.

@see www.ecma-international.org/ecma-262 ECMA262 11.4

Public Class Methods

new(val) click to toggle source
# File lib/minjs/ecma262/expression.rb, line 893
def initialize(val)
  @val = val
end

Public Instance Methods

ecma262_typeof() click to toggle source

return results of ‘typeof’ operator.

@return [Symbol] :string

# File lib/minjs/ecma262/expression.rb, line 909
def ecma262_typeof
  :string
end
priority() click to toggle source

@return [Fixnum] expression priority

# File lib/minjs/ecma262/expression.rb, line 902
def priority
  PRIORITY_UNARY
end
sym() click to toggle source

symbol of expression

# File lib/minjs/ecma262/expression.rb, line 898
def sym
  "typeof"
end