Don't wrap literals on get_literal_value()
get_literal_value should always return the value of the literal, never the wrapped literal object itself.
This commit is contained in:
Родитель
2a9cc1bf13
Коммит
a97f347d17
|
@ -194,8 +194,8 @@ class JSGlobal(JSObject):
|
|||
def get_literal_value(self, traverser=None):
|
||||
traverser = traverser or self.traverser
|
||||
if "literal" in self.global_data:
|
||||
lit = utils.evaluate_lambdas(traverser, self.global_data["literal"])
|
||||
return JSLiteral(lit, traverser=traverser)
|
||||
return utils.evaluate_lambdas(
|
||||
traverser, self.global_data["literal"])
|
||||
|
||||
directory = self._get_contents(traverser)
|
||||
if directory and not isinstance(directory, dict):
|
||||
|
|
Загрузка…
Ссылка в новой задаче