• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2014 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --harmony-tostring
6
7function testMathToString() {
8  assertEquals('[object Math]', "" + Math);
9  assertEquals("Math", Math[Symbol.toStringTag]);
10  var desc = Object.getOwnPropertyDescriptor(Math, Symbol.toStringTag);
11  assertTrue(desc.configurable);
12  assertFalse(desc.writable);
13  assertEquals("Math", desc.value);
14}
15testMathToString();
16