Commit ac4fdca6 authored by titzer's avatar titzer Committed by Commit bot

[wasm] Dont ship by default.

R=mstarzinger@chromium.org,bradnelson@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2118733003
Cr-Commit-Position: refs/heads/master@{#37478}
parent bd0d9e7d
......@@ -415,12 +415,20 @@ static Handle<JSFunction> InstallFunc(Isolate* isolate, Handle<JSObject> object,
}
void WasmJs::Install(Isolate* isolate, Handle<JSGlobalObject> global) {
if (!FLAG_expose_wasm && !FLAG_validate_asm) {
return;
}
Factory* factory = isolate->factory();
// Setup wasm function map.
Handle<Context> context(global->native_context(), isolate);
InstallWasmFunctionMap(isolate, context);
if (!FLAG_expose_wasm) {
return;
}
// Bind the experimental WASM object.
// TODO(rossberg, titzer): remove once it's no longer needed.
{
......
// Copyright 2016 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.
// TODO(titzer): remove this test when WASM ships.
assertThrows(function() { var g = Wasm; });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment