Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80682 views
1
/**
2
* Copyright 2013 Facebook, Inc.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
/*jslint proto:true*/
17
18
var inherits = require('util').inherits;
19
20
var Resource = require('./Resource');
21
22
/**
23
* Resource for __benchmarks__ / *.js files
24
* @extends {Resource}
25
* @class
26
* @param {String} path path of the resource
27
*/
28
function JSBench(path) {
29
Resource.call(this, path);
30
31
this.id = null;
32
33
this.contacts = [];
34
this.requiredModules = [];
35
}
36
inherits(JSBench, Resource);
37
JSBench.__proto__ = Resource;
38
39
JSBench.prototype.type = 'JSBench';
40
JSBench.prototype.version = '0.1';
41
42
43
module.exports = JSBench;
44
45