summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/types/object/S8.6.2_A7.js
blob: 32ded83824f6005cb7ce45f052e5ad3ffb25e530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: |
    Objects that implement internal method [[Construct]] are called
    constructors. Math object is NOT constructor
es5id: 8.6.2_A7
description: Checking if execution of "var objMath=new Math" passes
---*/

assert.throws(TypeError, function() {
  var objMath=new Math;
});

reportCompare(0, 0);