Put atomics behind a feature flag (#470)

This commit is contained in:
Daniel Wirtz
2019-02-07 18:21:09 +01:00
committed by GitHub
parent 2f1a6c44ce
commit 1bd1d26152
6 changed files with 173 additions and 154 deletions

View File

@@ -237,7 +237,9 @@ export const enum Feature {
/** Bulk memory operations. */
BULK_MEMORY = 1 << 2, // see: https://github.com/WebAssembly/bulk-memory-operations
/** SIMD types and operations. */
SIMD = 1 << 3 // see: https://github.com/WebAssembly/simd
SIMD = 1 << 3, // see: https://github.com/WebAssembly/simd
/** Threading and atomic operations. */
THREADS = 1 << 4 // see: https://github.com/WebAssembly/threads
}
/** Indicates the desired kind of a conversion. */