de26ce051f
Zero-length ArrayBuffers are allowed to have NULL backing stores. BUG=522496 LOG=n Review URL: https://codereview.chromium.org/1302803003 Cr-Commit-Position: refs/heads/master@{#30259}
10 lines
309 B
JavaScript
10 lines
309 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.
|
|
|
|
if (this.Worker) {
|
|
var worker = new Worker("onmessage = function(){}");
|
|
var buf = new ArrayBuffer();
|
|
worker.postMessage(buf, [buf]);
|
|
}
|