4d6c309777
Don't DCHECK when neutering that the buffer is not a SharedArrayBuffer; instead, just return early. BUG=chromium:498142,chromium:497295 R=jarin@chromium.org LOG=n Review URL: https://codereview.chromium.org/1174753002 Cr-Commit-Position: refs/heads/master@{#28892}
9 lines
322 B
JavaScript
9 lines
322 B
JavaScript
// Copyright 2015 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Flags: --allow-natives-syntax --harmony-sharedarraybuffer
|
|
|
|
var sab = new SharedArrayBuffer(16);
|
|
assertThrows(function() { %ArrayBufferNeuter(sab); });
|