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