blob: 3f76f1197ac9a514ecf45b0168f5336e0732ac45 [file] [log] [blame]
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001// 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();