2015-12-11 12:26:16 +00:00
|
|
|
// 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.
|
|
|
|
|
2015-12-17 10:54:08 +00:00
|
|
|
// Flags: --expose-wasm
|
|
|
|
|
2016-10-26 16:58:40 +00:00
|
|
|
// Old API should be gone.
|
|
|
|
assertEquals("undefined", typeof Wasm);
|
2016-06-21 12:52:57 +00:00
|
|
|
|
2016-10-26 16:58:40 +00:00
|
|
|
// New API should rule.
|
2016-06-21 12:52:57 +00:00
|
|
|
assertEquals('object', typeof WebAssembly);
|
|
|
|
assertEquals('function', typeof WebAssembly.Module);
|
|
|
|
assertEquals('function', typeof WebAssembly.Instance);
|
|
|
|
assertEquals('function', typeof WebAssembly.compile);
|
2016-09-29 18:02:36 +00:00
|
|
|
assertEquals('function', typeof WebAssembly.validate);
|