blob: 3fc13f5b056680ef0fd3cd46fe02aa70df94ac84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (C) 2016 The V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-arraybuffer.isview
description: >
Return false if arg is not Object
info: |
24.1.3.1 ArrayBuffer.isView ( arg )
1. If Type(arg) is not Object, return false.
...
---*/
assert.sameValue(ArrayBuffer.isView(null), false, "null");
assert.sameValue(ArrayBuffer.isView(undefined), false, "undefined");
assert.sameValue(ArrayBuffer.isView(1), false, "number");
assert.sameValue(ArrayBuffer.isView(""), false, "string");
reportCompare(0, 0);
|