#
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
# Copyright 2013-2014 Sebastian Werner
#

# Via
# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects
GLOBALS = [
    "Boolean",
    "Number",
    "String",
    "Array",
    "Object",
    "Function",
    "RegExp",
    "Date",

    "Error",
    "EvalError",
    "RangeError",
    "ReferenceError",
    "SyntaxError",
    "TypeError",
    "URIError",

    "decodeURI",
    "decodeURIComponent",
    "encodeURI",
    "encodeURIComponent",

    "eval",
    "isFinite",
    "isNaN",
    "parseFloat",
    "parseInt",

    "Infinity",
    "Math",
    "NaN",
    "undefined"
]


def optimize(node):
    # TODO
    pass