Fixed some tracebacks
This commit is contained in:
Родитель
51115834a5
Коммит
67b7df8e58
|
@ -371,7 +371,8 @@ class JSArray(JSObject):
|
|||
# x = [4]
|
||||
# y = x * 3 // y = 12 since x equals "4"
|
||||
return u",".join([unicode(w.get_literal_value()) for
|
||||
w in self.elements if
|
||||
w in
|
||||
self.elements if
|
||||
not (isinstance(w, JSWrapper) and w.value == self)])
|
||||
|
||||
def set(self, index, value, traverser=None):
|
||||
|
|
|
@ -113,11 +113,11 @@ GLOBAL_ENTITIES = {
|
|||
u"document":
|
||||
{"value": {u"createElement":
|
||||
{"dangerous":
|
||||
lambda a, t: t(a[0]).get_literal_value()
|
||||
lambda a, t: unicode(t(a[0]).get_literal_value())
|
||||
.lower() == "script"},
|
||||
u"createElementNS":
|
||||
{"dangerous":
|
||||
lambda a, t: t(a[0]).get_literal_value()
|
||||
lambda a, t: unicode(t(a[0]).get_literal_value())
|
||||
.lower() == "script"},
|
||||
u"loadOverlay":
|
||||
{"dangerous": True}}},
|
||||
|
|
Загрузка…
Ссылка в новой задаче