From a97f347d17f9dfa056155349a9014ec9287cd86f Mon Sep 17 00:00:00 2001 From: Matt Basta Date: Tue, 10 Dec 2013 11:52:52 -0800 Subject: [PATCH] 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. --- appvalidator/testcases/javascript/jstypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appvalidator/testcases/javascript/jstypes.py b/appvalidator/testcases/javascript/jstypes.py index c26ea14..73f8a1c 100644 --- a/appvalidator/testcases/javascript/jstypes.py +++ b/appvalidator/testcases/javascript/jstypes.py @@ -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):