blob: 0235303d863a69705cbc29a8a7ebc3350c106c2a [file] [log] [blame]
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.11.4.4-6-1
description: >
Error.prototype.toString - 'Error' is returned when 'name' is
absent and empty string is returned when 'msg' is undefined
---*/
var errObj = new Error();
assert.sameValue(errObj.toString(), "Error", 'errObj.toString()');