blob: bf2c3d76fb06f1807a3087a188246a6161e71ec8 [file] [log] [blame]
// 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");