mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
harness test: fnGlobalObject.js
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
1839050378
commit
537ef01882
17
test/harness/fnGlobalObject.js
Normal file
17
test/harness/fnGlobalObject.js
Normal file
@ -0,0 +1,17 @@
|
||||
// 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);
|
Loading…
x
Reference in New Issue
Block a user