|  | @@ -409,7 +409,6 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		this.__init__ = function () {
 | 
	
		
			
				|  |  |  			st.addPackage("Kernel-Objects");
 | 
	
		
			
				|  |  | -			st.addPackage("Kernel-Infrastructure");
 | 
	
		
			
				|  |  |  			st.wrapClassName("ProtoObject", "Kernel-Objects", SmalltalkProtoObject, undefined, false);
 | 
	
		
			
				|  |  |  			st.wrapClassName("Object", "Kernel-Objects", SmalltalkObject, globals.ProtoObject, false);
 | 
	
		
			
				|  |  |  			st.wrapClassName("UndefinedObject", "Kernel-Objects", SmalltalkNil, globals.Object, false);
 | 
	
	
		
			
				|  | @@ -434,6 +433,7 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  		inherits(SmalltalkClassOrganizer, SmalltalkOrganizer);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		this.__init__ = function () {
 | 
	
		
			
				|  |  | +			st.addPackage("Kernel-Infrastructure");
 | 
	
		
			
				|  |  |  			st.wrapClassName("Organizer", "Kernel-Infrastructure", SmalltalkOrganizer, globals.Object, false);
 | 
	
		
			
				|  |  |  			st.wrapClassName("PackageOrganizer", "Kernel-Infrastructure", SmalltalkPackageOrganizer, globals.Organizer, false);
 | 
	
		
			
				|  |  |  			st.wrapClassName("ClassOrganizer", "Kernel-Infrastructure", SmalltalkClassOrganizer, globals.Organizer, false);
 | 
	
	
		
			
				|  | @@ -491,8 +491,7 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		function createHandler(selector) {
 | 
	
		
			
				|  |  |  			return function() {
 | 
	
		
			
				|  |  | -				var args = Array.prototype.slice.call(arguments);
 | 
	
		
			
				|  |  | -				return brikz.messageSend.messageNotUnderstood(this, selector, args);
 | 
	
		
			
				|  |  | +				return brikz.messageSend.messageNotUnderstood(this, selector, arguments);
 | 
	
		
			
				|  |  |  			};
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -522,9 +521,6 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  		st.initClass = function(klass) {
 | 
	
		
			
				|  |  |  			if(klass.wrapped) {
 | 
	
		
			
				|  |  |  				copySuperclass(klass);
 | 
	
		
			
				|  |  | -			}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -			if(klass.wrapped) {
 | 
	
		
			
				|  |  |  				dnu.installHandlers(klass);
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		};
 | 
	
	
		
			
				|  | @@ -594,6 +590,7 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		var org = brikz.ensure("organize");
 | 
	
		
			
				|  |  |  		var root = brikz.ensure("root");
 | 
	
		
			
				|  |  | +		brikz.ensure("classInit");
 | 
	
		
			
				|  |  |  		var nil = root.nil;
 | 
	
		
			
				|  |  |  		var rootAsClass = root.rootAsClass;
 | 
	
		
			
				|  |  |  		var SmalltalkObject = root.Object;
 | 
	
	
		
			
				|  | @@ -621,6 +618,7 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  			globals.ProtoObject.klass.superclass = rootAsClass.klass = globals.Class;
 | 
	
		
			
				|  |  |  			addSubclass(globals.ProtoObject.klass);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +			st.addPackage("Kernel-Infrastructure");
 | 
	
		
			
				|  |  |  			st.wrapClassName("Package", "Kernel-Infrastructure", SmalltalkPackage, globals.Object, false);
 | 
	
		
			
				|  |  |  		};
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -685,6 +683,13 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  			return 'Smalltalk ' + this.className;
 | 
	
		
			
				|  |  |  		};
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +		function wireKlass(klass) {
 | 
	
		
			
				|  |  | +			Object.defineProperty(klass.fn.prototype, "klass", {
 | 
	
		
			
				|  |  | +				value: klass,
 | 
	
		
			
				|  |  | +				enumerable: false, configurable: true, writable: true
 | 
	
		
			
				|  |  | +			});
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  		function setupClass(klass, spec) {
 | 
	
		
			
				|  |  |  			spec = spec || {};
 | 
	
		
			
				|  |  |  			klass.iVarNames = spec.iVarNames || [];
 | 
	
	
		
			
				|  | @@ -695,10 +700,7 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  				value: Object.create(null),
 | 
	
		
			
				|  |  |  				enumerable: false, configurable: true, writable: true
 | 
	
		
			
				|  |  |  			});
 | 
	
		
			
				|  |  | -			Object.defineProperty(klass.fn.prototype, "klass", {
 | 
	
		
			
				|  |  | -				value: klass,
 | 
	
		
			
				|  |  | -				enumerable: false, configurable: true, writable: true
 | 
	
		
			
				|  |  | -			});
 | 
	
		
			
				|  |  | +			wireKlass(klass);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		/* Add a package to the smalltalk.packages object, creating a new one if needed.
 | 
	
	
		
			
				|  | @@ -724,12 +726,10 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  		 A Package is lazily created if it does not exist with given name. */
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		st.addClass = function(className, superclass, iVarNames, pkgName) {
 | 
	
		
			
				|  |  | -			if (superclass == nil) { superclass = null; }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  			// While subclassing nil is allowed, it might be an error, so
 | 
	
		
			
				|  |  |  			// warn about it.
 | 
	
		
			
				|  |  | -			if (superclass === null) {
 | 
	
		
			
				|  |  | -				console.warn('Compiling ' + className + ' as a subclass of `nil`. A dependency might be missing.');
 | 
	
		
			
				|  |  | +			if (!superclass || superclass == nil) {
 | 
	
		
			
				|  |  | +				console.warn('Creating ' + className + ' as a subclass of `nil`. A dependency might be missing.');
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  			rawAddClass(pkgName, className, superclass, iVarNames, false, null);
 | 
	
		
			
				|  |  |  		};
 | 
	
	
		
			
				|  | @@ -741,6 +741,7 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  				throw new Error("Missing package "+pkgName);
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +			if (!superclass || superclass == nil) { superclass = null; }
 | 
	
		
			
				|  |  |  			if(globals[className] && globals[className].superclass == superclass) {
 | 
	
		
			
				|  |  |  				//            globals[className].superclass = superclass;
 | 
	
		
			
				|  |  |  				globals[className].iVarNames = iVarNames || [];
 | 
	
	
		
			
				|  | @@ -808,10 +809,7 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  			klass.fn = constructor;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			// The fn property changed. We need to add back the klass property to the prototype
 | 
	
		
			
				|  |  | -			Object.defineProperty(klass.fn.prototype, "klass", {
 | 
	
		
			
				|  |  | -				value: klass,
 | 
	
		
			
				|  |  | -				enumerable: false, configurable: true, writable: true
 | 
	
		
			
				|  |  | -			});
 | 
	
		
			
				|  |  | +			wireKlass(klass);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			st.initClass(klass);
 | 
	
		
			
				|  |  |  		};
 | 
	
	
		
			
				|  | @@ -1055,13 +1053,10 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		/* Converts a JavaScript object to valid Smalltalk Object */
 | 
	
		
			
				|  |  |  		st.readJSObject = function(js) {
 | 
	
		
			
				|  |  | -			var object = js;
 | 
	
		
			
				|  |  | -			var readObject = (js.constructor === Object);
 | 
	
		
			
				|  |  | -			var readArray = (js.constructor === Array);
 | 
	
		
			
				|  |  | +			var readObject = js.constructor === Object;
 | 
	
		
			
				|  |  | +			var readArray = js.constructor === Array;
 | 
	
		
			
				|  |  | +			var object = readObject ? globals.Dictionary._new() : readArray ? [] : js;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -			if(readObject) {
 | 
	
		
			
				|  |  | -				object = globals.Dictionary._new();
 | 
	
		
			
				|  |  | -			}
 | 
	
		
			
				|  |  |  			for(var i in js) {
 | 
	
		
			
				|  |  |  				if(readObject) {
 | 
	
		
			
				|  |  |  					object._at_put_(i, st.readJSObject(js[i]));
 | 
	
	
		
			
				|  | @@ -1195,7 +1190,7 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  			return result;
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -		/* Wrap a JavaScript exception in a Smalltalk Exception. 
 | 
	
		
			
				|  |  | +		/* Wrap a JavaScript exception in a Smalltalk Exception.
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		 In case of a RangeError, stub the stack after 100 contexts to
 | 
	
		
			
				|  |  |  		 avoid another RangeError later when the stack is manipulated. */
 | 
	
	
		
			
				|  | @@ -1299,7 +1294,7 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  			return receiver._doesNotUnderstand_(
 | 
	
		
			
				|  |  |  				globals.Message._new()
 | 
	
		
			
				|  |  |  					._selector_(st.convertSelector(selector))
 | 
	
		
			
				|  |  | -					._arguments_(args)
 | 
	
		
			
				|  |  | +					._arguments_([].slice.call(args))
 | 
	
		
			
				|  |  |  			);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -1318,11 +1313,11 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		function callJavaScriptMethod(receiver, selector, args) {
 | 
	
		
			
				|  |  |  			var jsSelector = selector._asJavaScriptSelector();
 | 
	
		
			
				|  |  | -			var jsProperty = receiver[jsSelector];
 | 
	
		
			
				|  |  | -			if(typeof jsProperty === "function" && !/^[A-Z]/.test(jsSelector)) {
 | 
	
		
			
				|  |  | -				return jsProperty.apply(receiver, args);
 | 
	
		
			
				|  |  | -			} else if(jsProperty !== undefined) {
 | 
	
		
			
				|  |  | -				if(args[0]) {
 | 
	
		
			
				|  |  | +			if (jsSelector in receiver) {
 | 
	
		
			
				|  |  | +				var jsProperty = receiver[jsSelector];
 | 
	
		
			
				|  |  | +				if (typeof jsProperty === "function" && !/^[A-Z]/.test(jsSelector)) {
 | 
	
		
			
				|  |  | +					return jsProperty.apply(receiver, args);
 | 
	
		
			
				|  |  | +				} else if (args.length > 0) {
 | 
	
		
			
				|  |  |  					receiver[jsSelector] = args[0];
 | 
	
		
			
				|  |  |  					return nil;
 | 
	
		
			
				|  |  |  				} else {
 | 
	
	
		
			
				|  | @@ -1402,27 +1397,27 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
 | 
	
		
			
				|  |  |  		};
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    /* Defines asReceiver to be present at load time */
 | 
	
		
			
				|  |  | -    /* (logically it belongs more to PrimitiveBrik) */
 | 
	
		
			
				|  |  | -    function AsReceiverBrik(brikz, st) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        var nil = brikz.ensure("root").nil;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        /**
 | 
	
		
			
				|  |  | -         * This function is used all over the compiled amber code.
 | 
	
		
			
				|  |  | -         * It takes any value (JavaScript or Smalltalk)
 | 
	
		
			
				|  |  | -         * and returns a proper Amber Smalltalk receiver.
 | 
	
		
			
				|  |  | -         *
 | 
	
		
			
				|  |  | -         * null or undefined -> nil,
 | 
	
		
			
				|  |  | -         * plain JS object -> wrapped JS object,
 | 
	
		
			
				|  |  | -         * otherwise unchanged
 | 
	
		
			
				|  |  | -         */
 | 
	
		
			
				|  |  | -        this.asReceiver = function (o) {
 | 
	
		
			
				|  |  | -            if (o == null) { return nil; }
 | 
	
		
			
				|  |  | -            if (o.klass) { return o; }
 | 
	
		
			
				|  |  | -            return globals.JSObjectProxy._on_(o);
 | 
	
		
			
				|  |  | -        };
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +	/* Defines asReceiver to be present at load time */
 | 
	
		
			
				|  |  | +	/* (logically it belongs more to PrimitiveBrik) */
 | 
	
		
			
				|  |  | +	function AsReceiverBrik(brikz, st) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		var nil = brikz.ensure("root").nil;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		/**
 | 
	
		
			
				|  |  | +		 * This function is used all over the compiled amber code.
 | 
	
		
			
				|  |  | +		 * It takes any value (JavaScript or Smalltalk)
 | 
	
		
			
				|  |  | +		 * and returns a proper Amber Smalltalk receiver.
 | 
	
		
			
				|  |  | +		 *
 | 
	
		
			
				|  |  | +		 * null or undefined -> nil,
 | 
	
		
			
				|  |  | +		 * plain JS object -> wrapped JS object,
 | 
	
		
			
				|  |  | +		 * otherwise unchanged
 | 
	
		
			
				|  |  | +		 */
 | 
	
		
			
				|  |  | +		this.asReceiver = function (o) {
 | 
	
		
			
				|  |  | +			if (o == null) { return nil; }
 | 
	
		
			
				|  |  | +			if (o.klass) { return o; }
 | 
	
		
			
				|  |  | +			return globals.JSObjectProxy._on_(o);
 | 
	
		
			
				|  |  | +		};
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	/* Making smalltalk that can load */
 | 
	
	
		
			
				|  | @@ -18780,31 +18775,6 @@ referencedClasses: []
 | 
	
		
			
				|  |  |  }),
 | 
	
		
			
				|  |  |  globals.Package);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -smalltalk.addMethod(
 | 
	
		
			
				|  |  | -smalltalk.method({
 | 
	
		
			
				|  |  | -selector: "isTestPackage",
 | 
	
		
			
				|  |  | -protocol: 'testing',
 | 
	
		
			
				|  |  | -fn: function (){
 | 
	
		
			
				|  |  | -var self=this;
 | 
	
		
			
				|  |  | -function $TestCase(){return globals.TestCase||(typeof TestCase=="undefined"?nil:TestCase)}
 | 
	
		
			
				|  |  | -return smalltalk.withContext(function($ctx1) { 
 | 
	
		
			
				|  |  | -var $1;
 | 
	
		
			
				|  |  | -$1=_st(self._classes())._anySatisfy_((function(each){
 | 
	
		
			
				|  |  | -return smalltalk.withContext(function($ctx2) {
 | 
	
		
			
				|  |  | -return _st(_st(each)._includesBehavior_($TestCase()))._and_((function(){
 | 
	
		
			
				|  |  | -return smalltalk.withContext(function($ctx3) {
 | 
	
		
			
				|  |  | -return _st(_st(each)._isAbstract())._not();
 | 
	
		
			
				|  |  | -}, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)})}));
 | 
	
		
			
				|  |  | -}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})}));
 | 
	
		
			
				|  |  | -return $1;
 | 
	
		
			
				|  |  | -}, function($ctx1) {$ctx1.fill(self,"isTestPackage",{},globals.Package)})},
 | 
	
		
			
				|  |  | -args: [],
 | 
	
		
			
				|  |  | -source: "isTestPackage\x0a\x09^ self classes anySatisfy: [ :each |\x0a\x09\x09(each includesBehavior: TestCase) and: [ \x0a\x09\x09\x09each isAbstract not ] ]",
 | 
	
		
			
				|  |  | -messageSends: ["anySatisfy:", "classes", "and:", "includesBehavior:", "not", "isAbstract"],
 | 
	
		
			
				|  |  | -referencedClasses: ["TestCase"]
 | 
	
		
			
				|  |  | -}),
 | 
	
		
			
				|  |  | -globals.Package);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  smalltalk.addMethod(
 | 
	
		
			
				|  |  |  smalltalk.method({
 | 
	
		
			
				|  |  |  selector: "loadDependencies",
 | 
	
	
		
			
				|  | @@ -40946,7 +40916,7 @@ globals.SmalltalkParser = (function() {
 | 
	
		
			
				|  |  |    };
 | 
	
		
			
				|  |  |  })();
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  | -define("amber_core/SUnit", ["amber/boot", "amber_core/Kernel-Objects", "amber_core/Kernel-Exceptions"], function($boot){
 | 
	
		
			
				|  |  | +define("amber_core/SUnit", ["amber/boot", "amber_core/Kernel-Objects", "amber_core/Kernel-Exceptions", "amber_core/Kernel-Classes", "amber_core/Kernel-Infrastructure"], function($boot){
 | 
	
		
			
				|  |  |  var smalltalk=$boot.vm,nil=$boot.nil,_st=$boot.asReceiver,globals=$boot.globals;
 | 
	
		
			
				|  |  |  smalltalk.addPackage('SUnit');
 | 
	
		
			
				|  |  |  smalltalk.packages["SUnit"].transport = {"type":"amd","amdNamespace":"amber_core"};
 | 
	
	
		
			
				|  | @@ -42180,6 +42150,49 @@ referencedClasses: []
 | 
	
		
			
				|  |  |  }),
 | 
	
		
			
				|  |  |  globals.TestSuiteRunner.klass);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +smalltalk.addMethod(
 | 
	
		
			
				|  |  | +smalltalk.method({
 | 
	
		
			
				|  |  | +selector: "isTestClass",
 | 
	
		
			
				|  |  | +protocol: '*SUnit',
 | 
	
		
			
				|  |  | +fn: function (){
 | 
	
		
			
				|  |  | +var self=this;
 | 
	
		
			
				|  |  | +function $TestCase(){return globals.TestCase||(typeof TestCase=="undefined"?nil:TestCase)}
 | 
	
		
			
				|  |  | +return smalltalk.withContext(function($ctx1) { 
 | 
	
		
			
				|  |  | +var $1;
 | 
	
		
			
				|  |  | +$1=_st(self._includesBehavior_($TestCase()))._and_((function(){
 | 
	
		
			
				|  |  | +return smalltalk.withContext(function($ctx2) {
 | 
	
		
			
				|  |  | +return _st(self._isAbstract())._not();
 | 
	
		
			
				|  |  | +}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
 | 
	
		
			
				|  |  | +return $1;
 | 
	
		
			
				|  |  | +}, function($ctx1) {$ctx1.fill(self,"isTestClass",{},globals.Behavior)})},
 | 
	
		
			
				|  |  | +args: [],
 | 
	
		
			
				|  |  | +source: "isTestClass\x0a\x09^(self includesBehavior: TestCase) and: [ \x0a\x09\x09\x09self isAbstract not ]",
 | 
	
		
			
				|  |  | +messageSends: ["and:", "includesBehavior:", "not", "isAbstract"],
 | 
	
		
			
				|  |  | +referencedClasses: ["TestCase"]
 | 
	
		
			
				|  |  | +}),
 | 
	
		
			
				|  |  | +globals.Behavior);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +smalltalk.addMethod(
 | 
	
		
			
				|  |  | +smalltalk.method({
 | 
	
		
			
				|  |  | +selector: "isTestPackage",
 | 
	
		
			
				|  |  | +protocol: '*SUnit',
 | 
	
		
			
				|  |  | +fn: function (){
 | 
	
		
			
				|  |  | +var self=this;
 | 
	
		
			
				|  |  | +return smalltalk.withContext(function($ctx1) { 
 | 
	
		
			
				|  |  | +var $1;
 | 
	
		
			
				|  |  | +$1=_st(self._classes())._anySatisfy_((function(each){
 | 
	
		
			
				|  |  | +return smalltalk.withContext(function($ctx2) {
 | 
	
		
			
				|  |  | +return _st(each)._isTestClass();
 | 
	
		
			
				|  |  | +}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})}));
 | 
	
		
			
				|  |  | +return $1;
 | 
	
		
			
				|  |  | +}, function($ctx1) {$ctx1.fill(self,"isTestPackage",{},globals.Package)})},
 | 
	
		
			
				|  |  | +args: [],
 | 
	
		
			
				|  |  | +source: "isTestPackage\x0a\x09^ self classes anySatisfy: [ :each | each isTestClass ]",
 | 
	
		
			
				|  |  | +messageSends: ["anySatisfy:", "classes", "isTestClass"],
 | 
	
		
			
				|  |  | +referencedClasses: []
 | 
	
		
			
				|  |  | +}),
 | 
	
		
			
				|  |  | +globals.Package);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  define("amber_core/Kernel-ImportExport", ["amber/boot", "amber_core/Kernel-Objects", "amber_core/Kernel-Infrastructure"], function($boot){
 | 
	
	
		
			
				|  | @@ -50516,6 +50529,22 @@ globals.ConsoleTranscriptTest);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  smalltalk.addClass('JSObjectProxyTest', globals.TestCase, [], 'Kernel-Tests');
 | 
	
		
			
				|  |  | +smalltalk.addMethod(
 | 
	
		
			
				|  |  | +smalltalk.method({
 | 
	
		
			
				|  |  | +selector: "jsNull",
 | 
	
		
			
				|  |  | +protocol: 'accessing',
 | 
	
		
			
				|  |  | +fn: function (){
 | 
	
		
			
				|  |  | +var self=this;
 | 
	
		
			
				|  |  | +return smalltalk.withContext(function($ctx1) { 
 | 
	
		
			
				|  |  | +return null;
 | 
	
		
			
				|  |  | +return self}, function($ctx1) {$ctx1.fill(self,"jsNull",{},globals.JSObjectProxyTest)})},
 | 
	
		
			
				|  |  | +args: [],
 | 
	
		
			
				|  |  | +source: "jsNull\x0a\x09<return null>",
 | 
	
		
			
				|  |  | +messageSends: [],
 | 
	
		
			
				|  |  | +referencedClasses: []
 | 
	
		
			
				|  |  | +}),
 | 
	
		
			
				|  |  | +globals.JSObjectProxyTest);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  smalltalk.addMethod(
 | 
	
		
			
				|  |  |  smalltalk.method({
 | 
	
		
			
				|  |  |  selector: "jsObject",
 | 
	
	
		
			
				|  | @@ -50523,10 +50552,26 @@ protocol: 'accessing',
 | 
	
		
			
				|  |  |  fn: function (){
 | 
	
		
			
				|  |  |  var self=this;
 | 
	
		
			
				|  |  |  return smalltalk.withContext(function($ctx1) { 
 | 
	
		
			
				|  |  | -return jsObject = {a: 1, b: function() {return 2;}, c: function(object) {return object;}, d: '', 'e': null, 'f': void 0};
 | 
	
		
			
				|  |  | +return {a: 1, b: function() {return 2;}, c: function(object) {return object;}, d: '', 'e': null, 'f': void 0};
 | 
	
		
			
				|  |  |  return self}, function($ctx1) {$ctx1.fill(self,"jsObject",{},globals.JSObjectProxyTest)})},
 | 
	
		
			
				|  |  |  args: [],
 | 
	
		
			
				|  |  | -source: "jsObject\x0a\x09<return jsObject = {a: 1, b: function() {return 2;}, c: function(object) {return object;}, d: '', 'e': null, 'f': void 0}>",
 | 
	
		
			
				|  |  | +source: "jsObject\x0a\x09<return {a: 1, b: function() {return 2;}, c: function(object) {return object;}, d: '', 'e': null, 'f': void 0}>",
 | 
	
		
			
				|  |  | +messageSends: [],
 | 
	
		
			
				|  |  | +referencedClasses: []
 | 
	
		
			
				|  |  | +}),
 | 
	
		
			
				|  |  | +globals.JSObjectProxyTest);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +smalltalk.addMethod(
 | 
	
		
			
				|  |  | +smalltalk.method({
 | 
	
		
			
				|  |  | +selector: "jsUndefined",
 | 
	
		
			
				|  |  | +protocol: 'accessing',
 | 
	
		
			
				|  |  | +fn: function (){
 | 
	
		
			
				|  |  | +var self=this;
 | 
	
		
			
				|  |  | +return smalltalk.withContext(function($ctx1) { 
 | 
	
		
			
				|  |  | +return;
 | 
	
		
			
				|  |  | +return self}, function($ctx1) {$ctx1.fill(self,"jsUndefined",{},globals.JSObjectProxyTest)})},
 | 
	
		
			
				|  |  | +args: [],
 | 
	
		
			
				|  |  | +source: "jsUndefined\x0a\x09<return>",
 | 
	
		
			
				|  |  |  messageSends: [],
 | 
	
		
			
				|  |  |  referencedClasses: []
 | 
	
		
			
				|  |  |  }),
 | 
	
	
		
			
				|  | @@ -50861,6 +50906,54 @@ referencedClasses: ["MessageNotUnderstood"]
 | 
	
		
			
				|  |  |  }),
 | 
	
		
			
				|  |  |  globals.JSObjectProxyTest);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +smalltalk.addMethod(
 | 
	
		
			
				|  |  | +smalltalk.method({
 | 
	
		
			
				|  |  | +selector: "testSetPropertyWithFalsyValue",
 | 
	
		
			
				|  |  | +protocol: 'tests',
 | 
	
		
			
				|  |  | +fn: function (){
 | 
	
		
			
				|  |  | +var self=this;
 | 
	
		
			
				|  |  | +var jsObject;
 | 
	
		
			
				|  |  | +return smalltalk.withContext(function($ctx1) { 
 | 
	
		
			
				|  |  | +var $1,$2,$3,$4,$5;
 | 
	
		
			
				|  |  | +jsObject=self._jsObject();
 | 
	
		
			
				|  |  | +$1=_st(jsObject)._a();
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["a"]=1;
 | 
	
		
			
				|  |  | +self._assert_equals_($1,(1));
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["assert:equals:"]=1;
 | 
	
		
			
				|  |  | +_st(jsObject)._a_(self._jsNull());
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["a:"]=1;
 | 
	
		
			
				|  |  | +$2=_st(jsObject)._a();
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["a"]=2;
 | 
	
		
			
				|  |  | +self._assert_equals_($2,nil);
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["assert:equals:"]=2;
 | 
	
		
			
				|  |  | +_st(jsObject)._a_((0));
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["a:"]=2;
 | 
	
		
			
				|  |  | +$3=_st(jsObject)._a();
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["a"]=3;
 | 
	
		
			
				|  |  | +self._assert_equals_($3,(0));
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["assert:equals:"]=3;
 | 
	
		
			
				|  |  | +_st(jsObject)._a_(self._jsUndefined());
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["a:"]=3;
 | 
	
		
			
				|  |  | +$4=_st(jsObject)._a();
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["a"]=4;
 | 
	
		
			
				|  |  | +self._assert_equals_($4,nil);
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["assert:equals:"]=4;
 | 
	
		
			
				|  |  | +_st(jsObject)._a_("");
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["a:"]=4;
 | 
	
		
			
				|  |  | +$5=_st(jsObject)._a();
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["a"]=5;
 | 
	
		
			
				|  |  | +self._assert_equals_($5,"");
 | 
	
		
			
				|  |  | +$ctx1.sendIdx["assert:equals:"]=5;
 | 
	
		
			
				|  |  | +_st(jsObject)._a_(false);
 | 
	
		
			
				|  |  | +self._assert_equals_(_st(jsObject)._a(),false);
 | 
	
		
			
				|  |  | +return self}, function($ctx1) {$ctx1.fill(self,"testSetPropertyWithFalsyValue",{jsObject:jsObject},globals.JSObjectProxyTest)})},
 | 
	
		
			
				|  |  | +args: [],
 | 
	
		
			
				|  |  | +source: "testSetPropertyWithFalsyValue\x0a\x09| jsObject |\x0a\x09jsObject := self jsObject.\x0a\x09self assert: (jsObject a) equals: 1.\x0a\x0a\x09jsObject a: self jsNull.\x0a\x09self assert: (jsObject a) equals: nil.\x0a\x09jsObject a: 0.\x0a\x09self assert: (jsObject a) equals: 0.\x0a\x09jsObject a: self jsUndefined.\x0a\x09self assert: (jsObject a) equals: nil.\x0a\x09jsObject a: ''.\x0a\x09self assert: (jsObject a) equals: ''.\x0a\x09jsObject a: false.\x0a\x09self assert: (jsObject a) equals: false\x0a\x0a\x0a\x09",
 | 
	
		
			
				|  |  | +messageSends: ["jsObject", "assert:equals:", "a", "a:", "jsNull", "jsUndefined"],
 | 
	
		
			
				|  |  | +referencedClasses: []
 | 
	
		
			
				|  |  | +}),
 | 
	
		
			
				|  |  | +globals.JSObjectProxyTest);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  smalltalk.addMethod(
 | 
	
		
			
				|  |  |  smalltalk.method({
 | 
	
		
			
				|  |  |  selector: "testValue",
 | 
	
	
		
			
				|  | @@ -56650,10 +56743,12 @@ selector: "start",
 | 
	
		
			
				|  |  |  protocol: 'action',
 | 
	
		
			
				|  |  |  fn: function (){
 | 
	
		
			
				|  |  |  var self=this;
 | 
	
		
			
				|  |  | -return self},
 | 
	
		
			
				|  |  | +return smalltalk.withContext(function($ctx1) { 
 | 
	
		
			
				|  |  | +_st(_st(require)._value_("amber-dev/lib/config"))._writeConfig_(_st(process)._cwd());
 | 
	
		
			
				|  |  | +return self}, function($ctx1) {$ctx1.fill(self,"start",{},globals.Configurator)})},
 | 
	
		
			
				|  |  |  args: [],
 | 
	
		
			
				|  |  | -source: "start",
 | 
	
		
			
				|  |  | -messageSends: [],
 | 
	
		
			
				|  |  | +source: "start\x0a\x09(require value: 'amber-dev/lib/config')\x0a\x09\x09writeConfig: process cwd",
 | 
	
		
			
				|  |  | +messageSends: ["writeConfig:", "value:", "cwd"],
 | 
	
		
			
				|  |  |  referencedClasses: []
 | 
	
		
			
				|  |  |  }),
 | 
	
		
			
				|  |  |  globals.Configurator);
 |