summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/prototype/toString/Object.prototype.toString.call-null.js
blob: b403798f622b10579423f2cbde39d57a302d153a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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: If the this value is null, return "[object Null]".
---*/
assert.sameValue(
  Object.prototype.toString.call(null),
  "[object Null]",
  "Object.prototype.toString.call(null) returns [object Null]"
);

reportCompare(0, 0);