Add instantiateStreaming and compileStreaming to WebAssembly externs.
Closes
@@ -86,16 +86,29 @@ WebAssembly.RuntimeError = function() {};
/**
* @param {!BufferSource} moduleObject
* @param {Object=} importObject
- * @return {!Promise<{module:WebAssembly.Module, instance:WebAssembly.Instance}>}
+ * @return {!Promise<{module:!WebAssembly.Module, instance:!WebAssembly.Instance}>}
*/
WebAssembly.instantiate = function(moduleObject, importObject) {};
+/**
+ * @param {!Promise<!Response>} moduleStream
+ * @param {Object=} importObject
+ * @return {!Promise<{module:!WebAssembly.Module, instance:!WebAssembly.Instance}>}
+ */
+WebAssembly.instantiateStreaming = function(moduleStream, importObject) {};
+
/**
* @param {!BufferSource} bytes
* @return {!Promise<!WebAssembly.Module>}
*/
WebAssembly.compile = function(bytes) {};
+/**
+ * @param {!Promise<!Response>} moduleStream
+ * @return {!Promise<!WebAssembly.Module>}
+ */
+WebAssembly.compileStreaming = function(moduleStream) {};
+
/**
* @param {!BufferSource} bytes
* @return {boolean}
