summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/harness/fnGlobalObject.js
blob: 721d0b2d8372141500a0fec5f0e66d20116e983c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2017 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
    Including fnGlobalObject.js will expose a function:

        fnGlobalObject

    fnGlobalObject returns a reference to the global object.

includes: [fnGlobalObject.js]
---*/

var gO = fnGlobalObject();

assert(typeof gO === "object");
assert.sameValue(gO, this);

reportCompare(0, 0);