def get_tree_from_spidermonkey(shell, code):
    data = run_with_serialize(shell, code)
    data = unicodehelper.decode(data)
    try:
        return json.loads(data, strict=False)
    except __HOLE__:
        # Okay, maybe it was an encoding issue.
        data = run_with_tempfile(shell, code)
        data = unicodehelper.decode(data)
        return json.loads(data, strict=False)
dataset/ETHPy150Open mozilla/app-validator/appvalidator/testcases/javascript/spidermonkey.py/get_tree_from_spidermonkey