Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Expression for the global object Date: Sun, 31 May 2015 11:14:02 +0100 Organization: A noiseless patient Spider Lines: 13 Message-ID: <87twuthx5h.fsf@bsb.me.uk> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="30512"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kamv+EeyAsm8q8O4Rbtd7Iu3P3tbdTZA=" Cancel-Lock: sha1:LxXmLlgFk1w2i41wLBYNh08Q4T4= sha1:mlKlUHL4lW2KMiSFa+Yb0mhvX2k= X-BSB-Auth: 1.49a337665d6251283c0e.20150531111402BST.87twuthx5h.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:27937 ram@zedat.fu-berlin.de (Stefan Ram) writes: > ram@zedat.fu-berlin.de (Stefan Ram) writes: >>What is the smallest scope- and host-independent expression >>whose value is the global object? > > Function("return this")() How does that help? The identifier Function is looked-up like any other. -- Ben.