test262/test/harness/fnGlobalObject.js
Rick Waldron 537ef01882 harness test: fnGlobalObject.js
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:59 -04:00

18 lines
417 B
JavaScript

// 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);