Skip to content

Instantly share code, notes, and snippets.

@qmx
Created June 13, 2012 16:09
Show Gist options
  • Save qmx/2925014 to your computer and use it in GitHub Desktop.
Save qmx/2925014 to your computer and use it in GitHub Desktop.
import java.util.Map;
/**
* proposed future layout for DynObjects
*/
public class DynObject2 {
// var x = {a:'lol'};
public Object a; // will be set to 'lol'
public Map<String, Integer> attributes = .... ;// key: 'a', value: CONFIGURABLE | WRITABLE | NON_EXTENSIBLE (OR'ed integers)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment