39ecc997eb
Bug: chromium:1006629,v8:9380 Change-Id: I8e45759fe3ad1b0ef8f1ebdb33919c84e1e8a044 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1815244 Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Cr-Commit-Position: refs/heads/master@{#63928}
11 lines
375 B
JavaScript
11 lines
375 B
JavaScript
// Copyright 2019 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.
|
|
|
|
const workerScript = `
|
|
onmessage = function() {
|
|
};`;
|
|
const worker = new Worker(workerScript, {type: 'string'});
|
|
const i32a = new Int32Array( new SharedArrayBuffer() );
|
|
worker.postMessage([i32a.buffer]);
|