// Copyright 2018 Rick Waldron.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-object.prototype.tostring
description: has a [[RegExpMatcher]] internal slot, let builtinTag be "RegExp".
---*/
assert.sameValue(
  Object.prototype.toString.call(/./),
  "[object RegExp]",
  "Object.prototype.toString.call(/./) returns [object RegExp]"
);
assert.sameValue(
  Object.prototype.toString.call(Object(/./)),
  "[object RegExp]",
  "Object.prototype.toString.call(Object(/./)) returns [object RegExp]"
);
assert.sameValue(
  Object.prototype.toString.call(new RegExp()),
  "[object RegExp]",
  "Object.prototype.toString.call(new RegExp()) returns [object RegExp]"
);
assert.sameValue(
  Object.prototype.toString.call(Object(new RegExp())),
  "[object RegExp]",
  "Object.prototype.toString.call(Object(new RegExp())) returns [object RegExp]"
);

reportCompare(0, 0);
