Danack / PHP-to-Javascript

A tool for converting simple PHP objects/code to Javascript, so that code for manipulating objects can be used both server-side and client-side.
Other
104 stars 32 forks source link

Default values are broken. Again #1

Closed Danack closed 11 years ago

Danack commented 11 years ago

PHP code:

function __construct($value = 3){ $this->value = $value }

Converts to: function TestClass(value 3){

Danack commented 11 years ago

This was fixed previously. See DefaultValue example.