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

        setTimeout()

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

var gO = fnGlobalObject();

assert(typeof setTimeout === "function");
assert(typeof gO.setTimeout === "function");
assert.sameValue(gO.setTimeout, setTimeout);

// TODO: assert semantics

reportCompare(0, 0);