Skip to content
Browse files

make encoding optional of buffer creation

  • Loading branch information...
1 parent b333c5c commit de5ec3f3a25050a0da70e5354052bfaf0b81d28d @cloudshift committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/Node.hx
View
2 js/Node.hx
@@ -94,7 +94,7 @@ typedef NodeQueryString = {
@:native("Buffer") extern class NodeBuffer implements ArrayAccess<Int> {
- @:overload(function(str:String,enc:String):Void {})
+ @:overload(function(str:String,?enc:String):Void {})
@:overload(function(arr:Array<Int>):Void {})
function new(size:Int):Void;

0 comments on commit de5ec3f

Please sign in to comment.
Something went wrong with that request. Please try again.