diff options
Diffstat (limited to 'js/src/tests/test262/harness/fnGlobalObject.js')
-rw-r--r-- | js/src/tests/test262/harness/fnGlobalObject.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/tests/test262/harness/fnGlobalObject.js b/js/src/tests/test262/harness/fnGlobalObject.js new file mode 100644 index 0000000000..721d0b2d83 --- /dev/null +++ b/js/src/tests/test262/harness/fnGlobalObject.js @@ -0,0 +1,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); |