|  | @@ -1,15 +1,18 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -/* 
 | 
	
		
			
				|  |  | +/**
 | 
	
		
			
				|  |  | + * _st is a function used all over the compiled amber code that
 | 
	
		
			
				|  |  | + * 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
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -_st points to a function used all over the compiled amber code that
 | 
	
		
			
				|  |  | -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
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -*/
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -define("amber_vm/_st", ["./boot"], function (boot) {
 | 
	
		
			
				|  |  | -    return boot._st;
 | 
	
		
			
				|  |  | +define("amber_vm/_st", ["./smalltalk", "./nil"], function (smalltalk, nil) {
 | 
	
		
			
				|  |  | +    return function (o) {
 | 
	
		
			
				|  |  | +        if (o == null) { return nil; }
 | 
	
		
			
				|  |  | +        if (o.klass) { return o; }
 | 
	
		
			
				|  |  | +        return smalltalk.JSObjectProxy._on_(o);
 | 
	
		
			
				|  |  | +    };
 | 
	
		
			
				|  |  |  });
 |