summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/NativeErrors/SyntaxError/is-error-object.js
blob: 8ea07870fa9d990e83695f2183706d825a33fd60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es6id: 19.5.6.4
description: >
  SyntaxError instances have an [[ErrorData]] internal slot.
info: |
  NativeError instances are ordinary objects that inherit properties
  from their NativeError prototype object and have an [[ErrorData]]
  internal slot whose value is undefined
---*/

assert.sameValue(Object.prototype.toString.call(new SyntaxError), "[object Error]");

reportCompare(0, 0);