Răsfoiți Sursa

Sync externs from Browser.hx 4adf55e99.

Fixes #1908.
Bruno Garcia 12 ani în urmă
părinte
comite
a76d5f1401
46 a modificat fișierele cu 73 adăugiri și 73 ștergeri
  1. 1 1
      std/js/html/AnimationEvent.hx
  2. 1 1
      std/js/html/ArrayBuffer.hx
  3. 1 1
      std/js/html/BeforeLoadEvent.hx
  4. 1 1
      std/js/html/Blob.hx
  5. 1 1
      std/js/html/CSSMatrix.hx
  6. 1 1
      std/js/html/CloseEvent.hx
  7. 1 1
      std/js/html/CustomEvent.hx
  8. 1 1
      std/js/html/DOMFormData.hx
  9. 1 1
      std/js/html/DataView.hx
  10. 1 1
      std/js/html/ErrorEvent.hx
  11. 1 1
      std/js/html/Event.hx
  12. 1 1
      std/js/html/EventSource.hx
  13. 4 4
      std/js/html/Float32Array.hx
  14. 4 4
      std/js/html/Float64Array.hx
  15. 1 1
      std/js/html/HashChangeEvent.hx
  16. 4 4
      std/js/html/Int16Array.hx
  17. 4 4
      std/js/html/Int32Array.hx
  18. 4 4
      std/js/html/Int8Array.hx
  19. 1 1
      std/js/html/MediaKeyEvent.hx
  20. 1 1
      std/js/html/MessageEvent.hx
  21. 1 1
      std/js/html/MutationObserver.hx
  22. 1 1
      std/js/html/Notification.hx
  23. 1 1
      std/js/html/OverflowEvent.hx
  24. 1 1
      std/js/html/PageTransitionEvent.hx
  25. 1 1
      std/js/html/Point.hx
  26. 1 1
      std/js/html/PopStateEvent.hx
  27. 1 1
      std/js/html/ProgressEvent.hx
  28. 1 1
      std/js/html/ShadowRoot.hx
  29. 1 1
      std/js/html/SharedWorker.hx
  30. 1 1
      std/js/html/SpeechRecognitionError.hx
  31. 1 1
      std/js/html/SpeechRecognitionEvent.hx
  32. 1 1
      std/js/html/StorageEvent.hx
  33. 1 1
      std/js/html/TextTrackCue.hx
  34. 1 1
      std/js/html/TrackEvent.hx
  35. 1 1
      std/js/html/TransitionEvent.hx
  36. 4 4
      std/js/html/Uint16Array.hx
  37. 4 4
      std/js/html/Uint32Array.hx
  38. 4 4
      std/js/html/Uint8Array.hx
  39. 4 4
      std/js/html/Uint8ClampedArray.hx
  40. 1 1
      std/js/html/WebSocket.hx
  41. 1 1
      std/js/html/Worker.hx
  42. 1 1
      std/js/html/rtc/IceCandidate.hx
  43. 1 1
      std/js/html/rtc/MediaStream.hx
  44. 1 1
      std/js/html/rtc/PeerConnection.hx
  45. 1 1
      std/js/html/rtc/SessionDescription.hx
  46. 1 1
      std/js/html/webgl/ContextEvent.hx

+ 1 - 1
std/js/html/AnimationEvent.hx

@@ -34,6 +34,6 @@ extern class AnimationEvent extends Event
 	/** The amount of time, in seconds, the animation had been running at the time the event occurred. */
 	var elapsedTime(default,null) : Float;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/ArrayBuffer.hx

@@ -31,7 +31,7 @@ extern class ArrayBuffer
 	/** The size, in bytes, of the array. This is established when the array is constructed and cannot be changed. <strong>Read only.</strong> */
 	var byteLength(default,null) : Int;
 
-	function new(?arg0 : Dynamic) : Void;
+	function new( ?arg0 : Dynamic ) : Void;
 
 	function slice( begin : Int, ?end : Int ) : ArrayBuffer;
 

+ 1 - 1
std/js/html/BeforeLoadEvent.hx

@@ -28,6 +28,6 @@ extern class BeforeLoadEvent extends Event
 {
 	var url(default,null) : String;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/Blob.hx

@@ -40,7 +40,7 @@ extern class Blob
 	/** An ASCII-encoded string, in all lower case, indicating the MIME&nbsp;type of the data contained in the <code>Blob</code>. If the type is unknown, this string is empty. <strong>Read only.</strong> */
 	var type(default,null) : String;
 
-	function new(?arg0 : Dynamic, ?arg1 : Dynamic) : Void;
+	function new( ?arg0 : Dynamic, ?arg1 : Dynamic ) : Void;
 
 	function slice( ?start : Int, ?end : Int, ?contentType : String ) : Blob;
 

+ 1 - 1
std/js/html/CSSMatrix.hx

@@ -70,7 +70,7 @@ extern class CSSMatrix
 
 	var m44 : Float;
 
-	function new() : Void;
+	function new( cssValue : String ) : Void;
 
 	function inverse() : CSSMatrix;
 

+ 1 - 1
std/js/html/CloseEvent.hx

@@ -37,6 +37,6 @@ extern class CloseEvent extends Event
 	/** Indicates whether or not the connection was cleanly closed. */
 	var wasClean(default,null) : Bool;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/CustomEvent.hx

@@ -33,7 +33,7 @@ extern class CustomEvent extends Event
 	/** The data passed when initializing the event. */
 	var detail(default,null) : Dynamic;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 	function initCustomEvent( typeArg : String, canBubbleArg : Bool, cancelableArg : Bool, detailArg : Dynamic ) : Void;
 

+ 1 - 1
std/js/html/DOMFormData.hx

@@ -26,7 +26,7 @@ package js.html;
 @:native("FormData")
 extern class DOMFormData
 {
-	function new(?arg0 : Dynamic) : Void;
+	function new( ?arg0 : Dynamic ) : Void;
 
 	function append( name : String, value : String, filename : String ) : Void;
 

+ 1 - 1
std/js/html/DataView.hx

@@ -55,7 +55,7 @@ extern class DataView extends ArrayBufferView
 <dl> <dt><code>INDEX_SIZE_ERR</code></dt> <dd>The <code>byteOffset</code> and <code>byteLength</code> result in the specified view extending past the end of the buffer.</dd>
 </dl>
 </div> */
-	function new(?arg0 : Dynamic, ?arg1 : Dynamic, ?arg2 : Dynamic) : Void;
+	function new( ?arg0 : Dynamic, ?arg1 : Dynamic, ?arg2 : Dynamic ) : Void;
 
 	function getFloat32( byteOffset : Int, ?littleEndian : Bool ) : Float;
 

+ 1 - 1
std/js/html/ErrorEvent.hx

@@ -32,6 +32,6 @@ extern class ErrorEvent extends Event
 
 	var message(default,null) : String;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/Event.hx

@@ -103,7 +103,7 @@ extern class Event
 	/** The name of the event (case-insensitive). */
 	var type(default,null) : String;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 	function initEvent( eventTypeArg : String, canBubbleArg : Bool, cancelableArg : Bool ) : Void;
 

+ 1 - 1
std/js/html/EventSource.hx

@@ -55,7 +55,7 @@ extern class EventSource extends EventTarget
 	/** Read only. */
 	var url(default,null) : String;
 
-	function new() : Void;
+	function new( scriptUrl : String ) : Void;
 
 	function close() : Void;
 

+ 4 - 4
std/js/html/Float32Array.hx

@@ -62,10 +62,10 @@ Float32Array Float32Array(
 </div><div id="section_8"><span id="Return_value"></span><h6 class="editable">Return value</h6>
 <p>A new <code>Float32Array</code> object representing the specified data buffer.</p>
 </div> */
-	@:overload( function(length : Int) : Void {} )
-	@:overload( function(array : Array<Float>) : Void {} )
-	@:overload( function(array : Float32Array) : Void {} )
-	function new(buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int) : Void;
+	@:overload( function( length : Int ) : Void {} )
+	@:overload( function( array : Array<Float> ) : Void {} )
+	@:overload( function( array : Float32Array ) : Void {} )
+	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
 
 	/** <p>Sets multiple values in the typed array, reading input values from a specified array.</p>
 

+ 4 - 4
std/js/html/Float64Array.hx

@@ -62,10 +62,10 @@ Float64Array Float64Array(
 </div><div id="section_8"><span id="Return_value"></span><h6 class="editable">Return value</h6>
 <p>A new <code>Float64Array</code> object representing the specified data buffer.</p>
 </div> */
-	@:overload( function(length : Int) : Void {} )
-	@:overload( function(array : Array<Float>) : Void {} )
-	@:overload( function(array : Float64Array) : Void {} )
-	function new(buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int) : Void;
+	@:overload( function( length : Int ) : Void {} )
+	@:overload( function( array : Array<Float> ) : Void {} )
+	@:overload( function( array : Float64Array ) : Void {} )
+	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
 
 	/** <p>Sets multiple values in the typed array, reading input values from a specified array.</p>
 

+ 1 - 1
std/js/html/HashChangeEvent.hx

@@ -30,7 +30,7 @@ extern class HashChangeEvent extends Event
 
 	var oldURL(default,null) : String;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 	function initHashChangeEvent( type : String, canBubble : Bool, cancelable : Bool, oldURL : String, newURL : String ) : Void;
 

+ 4 - 4
std/js/html/Int16Array.hx

@@ -62,10 +62,10 @@ Int16Array Int16Array(
 </div><div id="section_8"><span id="Return_value"></span><h6 class="editable">Return value</h6>
 <p>A new <code>Int16Array</code> object representing the specified data buffer.</p>
 </div> */
-	@:overload( function(length : Int) : Void {} )
-	@:overload( function(array : Array<Int>) : Void {} )
-	@:overload( function(array : Int16Array) : Void {} )
-	function new(buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int) : Void;
+	@:overload( function( length : Int ) : Void {} )
+	@:overload( function( array : Array<Int> ) : Void {} )
+	@:overload( function( array : Int16Array ) : Void {} )
+	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
 
 	/** <p>Sets multiple values in the typed array, reading input values from a specified array.</p>
 

+ 4 - 4
std/js/html/Int32Array.hx

@@ -62,10 +62,10 @@ Int32Array Int32Array(
 </div><div id="section_8"><span id="Return_value"></span><h6 class="editable">Return value</h6>
 <p>A new <code>Int32Array</code> object representing the specified data buffer.</p>
 </div> */
-	@:overload( function(length : Int) : Void {} )
-	@:overload( function(array : Array<Int>) : Void {} )
-	@:overload( function(array : Int32Array) : Void {} )
-	function new(buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int) : Void;
+	@:overload( function( length : Int ) : Void {} )
+	@:overload( function( array : Array<Int> ) : Void {} )
+	@:overload( function( array : Int32Array ) : Void {} )
+	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
 
 	/** <p>Sets multiple values in the typed array, reading input values from a specified array.</p>
 

+ 4 - 4
std/js/html/Int8Array.hx

@@ -62,10 +62,10 @@ Int8Array Int8Array(
 </div><div id="section_8"><span id="Return_value"></span><h6 class="editable">Return value</h6>
 <p>A new <code>Int8Array</code> object representing the specified data buffer.</p>
 </div> */
-	@:overload( function(length : Int) : Void {} )
-	@:overload( function(array : Array<Int>) : Void {} )
-	@:overload( function(array : Int8Array) : Void {} )
-	function new(buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int) : Void;
+	@:overload( function( length : Int ) : Void {} )
+	@:overload( function( array : Array<Int> ) : Void {} )
+	@:overload( function( array : Int8Array ) : Void {} )
+	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
 
 	/** <p>Sets multiple values in the typed array, reading input values from a specified array.</p>
 

+ 1 - 1
std/js/html/MediaKeyEvent.hx

@@ -40,6 +40,6 @@ extern class MediaKeyEvent extends Event
 
 	var systemCode(default,null) : Int;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/MessageEvent.hx

@@ -44,7 +44,7 @@ extern class MessageEvent extends Event
 
 	var source(default,null) : DOMWindow;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 	@:overload( function( typeArg : String, canBubbleArg : Bool, cancelableArg : Bool, dataArg : Dynamic, originArg : String, lastEventIdArg : String, sourceArg : DOMWindow, messagePorts : Array<Dynamic> ) :Void {} )
 	function initMessageEvent( typeArg : String, canBubbleArg : Bool, cancelableArg : Bool, dataArg : Dynamic, originArg : String, lastEventIdArg : String, sourceArg : DOMWindow, transferables : Array<Dynamic> ) : Void;

+ 1 - 1
std/js/html/MutationObserver.hx

@@ -26,7 +26,7 @@ package js.html;
 @:native("MutationObserver")
 extern class MutationObserver
 {
-	function new(?arg0 : Dynamic) : Void;
+	function new( ?arg0 : Dynamic ) : Void;
 
 	function disconnect() : Void;
 

+ 1 - 1
std/js/html/Notification.hx

@@ -53,7 +53,7 @@ extern class Notification extends EventTarget
 
 	var tag : String;
 
-	function new() : Void;
+	function new( title : String, options : Dynamic ) : Void;
 
 	function cancel() : Void;
 

+ 1 - 1
std/js/html/OverflowEvent.hx

@@ -38,6 +38,6 @@ extern class OverflowEvent extends Event
 
 	var verticalOverflow(default,null) : Bool;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/PageTransitionEvent.hx

@@ -28,6 +28,6 @@ extern class PageTransitionEvent extends Event
 {
 	var persisted(default,null) : Bool;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/Point.hx

@@ -36,6 +36,6 @@ extern class Point
 <pre>let p = new Point(x, y);
 </pre>
 <p>The new point, <code>p</code>, has the specified X&nbsp;and Y&nbsp;coordinates.</p> */
-	function new(?arg0 : Dynamic, ?arg1 : Dynamic) : Void;
+	function new( ?arg0 : Dynamic, ?arg1 : Dynamic ) : Void;
 
 }

+ 1 - 1
std/js/html/PopStateEvent.hx

@@ -28,6 +28,6 @@ extern class PopStateEvent extends Event
 {
 	var state(default,null) : Dynamic;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/ProgressEvent.hx

@@ -48,6 +48,6 @@ extern class ProgressEvent extends Event
 	/** The total number of bytes of content that will be transferred during the operation. If the total size is unknown, this value is zero. <strong>Read only.</strong> */
 	var total(default,null) : Int;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/ShadowRoot.hx

@@ -35,7 +35,7 @@ extern class ShadowRoot extends DocumentFragment
 
 	var resetStyleInheritance : Bool;
 
-	function new() : Void;
+	function new( host : Element ) : Void;
 
 	function getElementById( elementId : String ) : Element;
 

+ 1 - 1
std/js/html/SharedWorker.hx

@@ -30,6 +30,6 @@ extern class SharedWorker extends AbstractWorker
 {
 	var port(default,null) : MessagePort;
 
-	function new() : Void;
+	function new( scriptURL : String, name : String ) : Void;
 
 }

+ 1 - 1
std/js/html/SpeechRecognitionError.hx

@@ -48,6 +48,6 @@ extern class SpeechRecognitionError extends Event
 
 	var message(default,null) : String;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/SpeechRecognitionEvent.hx

@@ -32,6 +32,6 @@ extern class SpeechRecognitionEvent extends Event
 
 	var resultIndex(default,null) : Int;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/StorageEvent.hx

@@ -61,7 +61,7 @@ extern class StorageEvent extends Event
 	/** The URL of the document whose <code>key</code> changed. <strong>Read only.</strong> */
 	var url(default,null) : String;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 	function initStorageEvent( typeArg : String, canBubbleArg : Bool, cancelableArg : Bool, keyArg : String, ?oldValueArg : String, ?newValueArg : String, urlArg : String, storageAreaArg : Storage ) : Void;
 

+ 1 - 1
std/js/html/TextTrackCue.hx

@@ -59,7 +59,7 @@ extern class TextTrackCue extends EventTarget
 	/** Setter throws DOMException. */
 	var vertical : String;
 
-	function new() : Void;
+	function new( startTime : Float, endTime : Float, text : String ) : Void;
 
 	function getCueAsHTML() : DocumentFragment;
 

+ 1 - 1
std/js/html/TrackEvent.hx

@@ -28,6 +28,6 @@ extern class TrackEvent extends Event
 {
 	var track(default,null) : Dynamic;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 1 - 1
std/js/html/TransitionEvent.hx

@@ -30,6 +30,6 @@ extern class TransitionEvent extends Event
 
 	var propertyName(default,null) : String;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }

+ 4 - 4
std/js/html/Uint16Array.hx

@@ -62,10 +62,10 @@ Uint16Array Uint16Array(
 </div><div id="section_8"><span id="Return_value"></span><h6 class="editable">Return value</h6>
 <p>A new <code>Uint16Array</code> object representing the specified data buffer.</p>
 </div> */
-	@:overload( function(length : Int) : Void {} )
-	@:overload( function(array : Array<Int>) : Void {} )
-	@:overload( function(array : Uint16Array) : Void {} )
-	function new(buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int) : Void;
+	@:overload( function( length : Int ) : Void {} )
+	@:overload( function( array : Array<Int> ) : Void {} )
+	@:overload( function( array : Uint16Array ) : Void {} )
+	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
 
 	/** <p>Sets multiple values in the typed array, reading input values from a specified array.</p>
 

+ 4 - 4
std/js/html/Uint32Array.hx

@@ -62,10 +62,10 @@ Uint32Array Uint32Array(
 </div><div id="section_8"><span id="Return_value"></span><h6 class="editable">Return value</h6>
 <p>A new <code>Uint32Array</code> object representing the specified data buffer.</p>
 </div> */
-	@:overload( function(length : Int) : Void {} )
-	@:overload( function(array : Array<Int>) : Void {} )
-	@:overload( function(array : Uint32Array) : Void {} )
-	function new(buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int) : Void;
+	@:overload( function( length : Int ) : Void {} )
+	@:overload( function( array : Array<Int> ) : Void {} )
+	@:overload( function( array : Uint32Array ) : Void {} )
+	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
 
 	/** <p>Sets multiple values in the typed array, reading input values from a specified array.</p>
 

+ 4 - 4
std/js/html/Uint8Array.hx

@@ -62,10 +62,10 @@ Uint8Array Uint8Array(
 </div><div id="section_8"><span id="Return_value"></span><h6 class="editable">Return value</h6>
 <p>A new <code>Uint8Array</code> object representing the specified data buffer.</p>
 </div> */
-	@:overload( function(length : Int) : Void {} )
-	@:overload( function(array : Array<Int>) : Void {} )
-	@:overload( function(array : Uint8Array) : Void {} )
-	function new(buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int) : Void;
+	@:overload( function( length : Int ) : Void {} )
+	@:overload( function( array : Array<Int> ) : Void {} )
+	@:overload( function( array : Uint8Array ) : Void {} )
+	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
 
 	/** <p>Sets multiple values in the typed array, reading input values from a specified array.</p>
 

+ 4 - 4
std/js/html/Uint8ClampedArray.hx

@@ -28,9 +28,9 @@ extern class Uint8ClampedArray extends Uint8Array implements ArrayAccess<Int>
 {
 	static inline var BYTES_PER_ELEMENT : Int = 1;
 
-	@:overload( function(length : Int) : Void {} )
-	@:overload( function(array : Array<Int>) : Void {} )
-	@:overload( function(array : Uint8ClampedArray) : Void {} )
-	function new(buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int) : Void;
+	@:overload( function( length : Int ) : Void {} )
+	@:overload( function( array : Array<Int> ) : Void {} )
+	@:overload( function( array : Uint8ClampedArray ) : Void {} )
+	function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
 
 }

+ 1 - 1
std/js/html/WebSocket.hx

@@ -75,7 +75,7 @@ extern class WebSocket extends EventTarget
 	/** The URL&nbsp;as resolved by the constructor. This is always an absolute URL. <strong>Read only.</strong> */
 	var url(default,null) : String;
 
-	function new(?arg0 : Dynamic) : Void;
+	function new( ?arg0 : Dynamic ) : Void;
 
 	function close( ?code : Int, ?reason : String ) : Void;
 

+ 1 - 1
std/js/html/Worker.hx

@@ -54,7 +54,7 @@ extern class Worker extends AbstractWorker
 <div id="section_7"><span id="Return_value"></span><h6 class="editable">Return value</h6>
 <p>A new <code>Worker</code>.</p>
 </div></div> */
-	function new() : Void;
+	function new( scriptUrl : String ) : Void;
 
 	function postMessage( message : Dynamic, ?messagePorts : Array<Dynamic> ) : Void;
 

+ 1 - 1
std/js/html/rtc/IceCandidate.hx

@@ -32,6 +32,6 @@ extern class IceCandidate
 
 	var sdpMid(default,null) : String;
 
-	function new() : Void;
+	function new( dictionary : Dynamic ) : Void;
 
 }

+ 1 - 1
std/js/html/rtc/MediaStream.hx

@@ -40,6 +40,6 @@ extern class MediaStream extends js.html.EventTarget
 
 	var videoTracks(default,null) : MediaStreamTrackList;
 
-	function new() : Void;
+	function new( audioTracks : MediaStreamTrackList, videoTracks : MediaStreamTrackList ) : Void;
 
 }

+ 1 - 1
std/js/html/rtc/PeerConnection.hx

@@ -56,7 +56,7 @@ extern class PeerConnection extends js.html.EventTarget
 
 	var remoteStreams(default,null) : MediaStreamList;
 
-	function new() : Void;
+	function new( rtcIceServers : Dynamic, ?mediaConstraints : Dynamic ) : Void;
 
 	function addIceCandidate( candidate : IceCandidate ) : Void;
 

+ 1 - 1
std/js/html/rtc/SessionDescription.hx

@@ -32,6 +32,6 @@ extern class SessionDescription
 	/** Setter throws DOMException. */
 	var type : String;
 
-	function new() : Void;
+	function new( dictionary : Dynamic ) : Void;
 
 }

+ 1 - 1
std/js/html/webgl/ContextEvent.hx

@@ -28,6 +28,6 @@ extern class ContextEvent extends js.html.Event
 {
 	var statusMessage(default,null) : String;
 
-	function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;
+	function new( type : String, canBubble : Bool = true, cancelable : Bool = true ) : Void;
 
 }