lib/minjs/ecma262/lit.rb in minjs-0.2.1 vs lib/minjs/ecma262/lit.rb in minjs-0.2.2
- old
+ new
@@ -691,19 +691,20 @@
#val is tupple [[k,v],[k,v],...]
def initialize(val)
@val = val
end
- def idname?(name)
- return false if name.length == 0
- s = name.codepoints
- return false unless identifier_start?(s[0])
- s.unshift
- s.each do |code|
- return false unless identifier_part?(code)
- end
- return true
- end
+#=>Ctype
+# def idname?(name)
+# return false if name.length == 0
+# s = name.codepoints
+# return false unless identifier_start?(s[0])
+# s.unshift
+# s.each do |code|
+# return false unless identifier_part?(code)
+# end
+# return true
+# end
def deep_dup
self.class.new(@val.collect{|x, y| [x.deep_dup, y ? y.deep_dup : y]})
end