Comparing version 0.14.17 to 0.14.18
@@ -0,1 +1,6 @@ | ||
0.14.18: | ||
* Some internal API changes in Compiler-*. | ||
0.14.14: | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "amber", | ||
"version": "0.14.17", | ||
"version": "0.14.18", | ||
"main": "support/amber.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
{ | ||
"name": "amber", | ||
"version": "0.14.17", | ||
"version": "0.14.18", | ||
"description": "An implementation of the Smalltalk language that runs on top of the JS runtime.", | ||
@@ -23,3 +23,3 @@ "homepage": "http://amber-lang.net", | ||
"type": "git", | ||
"url": "git://github.com/amber-smalltalk/amber.git#0.14.17" | ||
"url": "git://github.com/amber-smalltalk/amber.git#0.14.18" | ||
}, | ||
@@ -30,13 +30,18 @@ "engines": { | ||
"scripts": { | ||
"test": "grunt test && cd external && cd amber-cli && npm test && cd .. && cd .." | ||
"build:parser:begin": "node -e \"process.stdout.write('define([\\'./boot\\'], function($boot) {\\nvar $globals = $boot.globals, nil = $boot.nil;\\n');\"", | ||
"build:parser": "(npm run -s build:parser:begin && pegjs --cache --export-var $globals.SmalltalkParser < support/parser.pegjs && npm run -s build:parser:end) > support/parser.js", | ||
"build:parser:end": "node -e \"process.stdout.write('});');\"", | ||
"test": "npm run test:sunit && npm run test:e2e", | ||
"test:sunit": "grunt test", | ||
"test:e2e": "(cd external && cd amber-cli && npm test)" | ||
}, | ||
"devDependencies": { | ||
"grunt": "^0.4.0", | ||
"grunt-contrib-clean": "^0.6.0", | ||
"grunt-contrib-clean": "^0.7.0", | ||
"grunt-contrib-jshint": "^0.11.0", | ||
"grunt-contrib-requirejs": "^0.4.4", | ||
"grunt-execute": "^0.2.1", | ||
"pegjs": "^0.8.0", | ||
"pegjs": "^0.9.0", | ||
"requirejs": "^2.1.15" | ||
} | ||
} |
@@ -65,3 +65,3 @@ Amber | ||
# Install the CLI tool `amber-cli` and supporting tools | ||
npm install -g amber-cli | ||
npm install -g grunt-cli grunt-init amber-cli | ||
@@ -68,0 +68,0 @@ |
@@ -1,2 +0,2 @@ | ||
define("amber_core/Compiler-Core", ["amber/boot", "amber_core/Kernel-Objects", "amber_core/Platform-Services", "amber_core/Kernel-Exceptions", "amber_core/Kernel-Collections"], function($boot){"use strict"; | ||
define("amber_core/Compiler-Core", ["amber/boot", "amber_core/Kernel-Objects", "amber_core/Kernel-Exceptions", "amber_core/Platform-Services", "amber_core/Kernel-Collections"], function($boot){"use strict"; | ||
var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals; | ||
@@ -80,5 +80,3 @@ $core.addPackage('Compiler-Core'); | ||
var self=this; | ||
var $1; | ||
$1=self["@currentClass"]; | ||
return $1; | ||
return self["@currentClass"]; | ||
@@ -120,5 +118,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@currentPackage"]; | ||
return $1; | ||
return self["@currentPackage"]; | ||
@@ -164,5 +160,3 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv($Smalltalk())._pseudoVariableNames(); | ||
return $1; | ||
return $recv($Smalltalk())._pseudoVariableNames(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -190,10 +184,9 @@ }, function($ctx1) {$ctx1.fill(self,"pseudoVariables",{},$globals.AbstractCodeGenerator)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$1,$receiver; | ||
$2=self["@source"]; | ||
if(($receiver = $2) == null || $receiver.isNil){ | ||
$1=""; | ||
var $1,$receiver; | ||
$1=self["@source"]; | ||
if(($receiver = $1) == null || $receiver.isNil){ | ||
return ""; | ||
} else { | ||
$1=$2; | ||
return $1; | ||
}; | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -247,3 +240,3 @@ }, function($ctx1) {$ctx1.fill(self,"source",{},$globals.AbstractCodeGenerator)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$3,$1; | ||
var $1; | ||
$recv(self._semanticAnalyzer())._visit_(aNode); | ||
@@ -257,8 +250,6 @@ //>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
//>>excludeEnd("ctx"); | ||
$2=self._irTranslator(); | ||
$recv($2)._currentClass_(self._currentClass()); | ||
$recv($2)._visit_(ir); | ||
$3=$recv($2)._contents(); | ||
$1=$3; | ||
return $1; | ||
$1=self._irTranslator(); | ||
$recv($1)._currentClass_(self._currentClass()); | ||
$recv($1)._visit_(ir); | ||
return $recv($1)._contents(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -287,5 +278,3 @@ }, function($ctx1) {$ctx1.fill(self,"compileNode:",{aNode:aNode,ir:ir,stream:stream},$globals.CodeGenerator)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv($IRJSTranslator())._new(); | ||
return $1; | ||
return $recv($IRJSTranslator())._new(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -314,8 +303,6 @@ }, function($ctx1) {$ctx1.fill(self,"irTranslator",{},$globals.CodeGenerator)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$3,$1; | ||
$2=$recv($SemanticAnalyzer())._on_(self._currentClass()); | ||
$recv($2)._thePackage_(self._currentPackage()); | ||
$3=$recv($2)._yourself(); | ||
$1=$3; | ||
return $1; | ||
var $1; | ||
$1=$recv($SemanticAnalyzer())._on_(self._currentClass()); | ||
$recv($1)._thePackage_(self._currentPackage()); | ||
return $recv($1)._yourself(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -344,9 +331,7 @@ }, function($ctx1) {$ctx1.fill(self,"semanticAnalyzer",{},$globals.CodeGenerator)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$3,$1; | ||
$2=$recv($IRASTTranslator())._new(); | ||
$recv($2)._source_(self._source()); | ||
$recv($2)._theClass_(self._currentClass()); | ||
$3=$recv($2)._yourself(); | ||
$1=$3; | ||
return $1; | ||
var $1; | ||
$1=$recv($IRASTTranslator())._new(); | ||
$recv($1)._source_(self._source()); | ||
$recv($1)._theClass_(self._currentClass()); | ||
return $recv($1)._yourself(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -381,10 +366,9 @@ }, function($ctx1) {$ctx1.fill(self,"translator",{},$globals.CodeGenerator)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$1,$receiver; | ||
$2=self["@codeGeneratorClass"]; | ||
if(($receiver = $2) == null || $receiver.isNil){ | ||
$1=$InliningCodeGenerator(); | ||
var $1,$receiver; | ||
$1=self["@codeGeneratorClass"]; | ||
if(($receiver = $1) == null || $receiver.isNil){ | ||
return $InliningCodeGenerator(); | ||
} else { | ||
$1=$2; | ||
return $1; | ||
}; | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -431,7 +415,4 @@ }, function($ctx1) {$ctx1.fill(self,"codeGeneratorClass",{},$globals.Compiler)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$1; | ||
self._source_(aString); | ||
$2=self._compileNode_forClass_package_(self._parse_(aString),aClass,$recv(aClass)._packageOfProtocol_(anotherString)); | ||
$1=$2; | ||
return $1; | ||
return self._compileNode_forClass_package_(self._parse_(aString),aClass,$recv(aClass)._packageOfProtocol_(anotherString)); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -459,9 +440,8 @@ }, function($ctx1) {$ctx1.fill(self,"compile:forClass:protocol:",{aString:aString,aClass:aClass,anotherString:anotherString},$globals.Compiler)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$1; | ||
$2=$recv("xxxDoIt ^ [ ".__comma(aString)).__comma(" ] value"); | ||
var $1; | ||
$1=$recv("xxxDoIt ^ [ ".__comma(aString)).__comma(" ] value"); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx[","]=1; | ||
//>>excludeEnd("ctx"); | ||
$1=self._compile_forClass_protocol_($2,$recv(anObject)._class(),"**xxxDoIt"); | ||
return $1; | ||
return self._compile_forClass_protocol_($1,$recv(anObject)._class(),"**xxxDoIt"); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -490,3 +470,3 @@ }, function($ctx1) {$ctx1.fill(self,"compileExpression:on:",{aString:aString,anObject:anObject},$globals.Compiler)}); | ||
//>>excludeEnd("ctx"); | ||
var $1,$2,$3; | ||
var $1; | ||
generator=$recv(self._codeGeneratorClass())._new(); | ||
@@ -496,7 +476,6 @@ $1=generator; | ||
$recv($1)._currentClass_(self._currentClass()); | ||
$2=$recv($1)._currentPackage_(self._currentPackage()); | ||
$recv($1)._currentPackage_(self._currentPackage()); | ||
result=$recv(generator)._compileNode_(aNode); | ||
self._unknownVariables_([]); | ||
$3=result; | ||
return $3; | ||
return result; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -524,8 +503,5 @@ }, function($ctx1) {$ctx1.fill(self,"compileNode:",{aNode:aNode,generator:generator,result:result},$globals.Compiler)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$1; | ||
self._currentClass_(aClass); | ||
self._currentPackage_(aPackage); | ||
$2=self._compileNode_(aNode); | ||
$1=$2; | ||
return $1; | ||
return self._compileNode_(aNode); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -550,5 +526,3 @@ }, function($ctx1) {$ctx1.fill(self,"compileNode:forClass:package:",{aNode:aNode,aClass:aClass,aPackage:aPackage},$globals.Compiler)}); | ||
var self=this; | ||
var $1; | ||
$1=self["@currentClass"]; | ||
return $1; | ||
return self["@currentClass"]; | ||
@@ -590,5 +564,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@currentPackage"]; | ||
return $1; | ||
return self["@currentPackage"]; | ||
@@ -684,5 +656,3 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=self._evaluateExpression_on_(aString,$recv($DoIt())._new()); | ||
return $1; | ||
return self._evaluateExpression_on_(aString,$recv($DoIt())._new()); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -711,3 +681,3 @@ }, function($ctx1) {$ctx1.fill(self,"evaluateExpression:",{aString:aString},$globals.Compiler)}); | ||
//>>excludeEnd("ctx"); | ||
var $1,$2; | ||
var $1; | ||
method=self._eval_(self._compileExpression_on_(aString,anObject)); | ||
@@ -722,4 +692,3 @@ $recv(method)._protocol_("**xxxDoIt"); | ||
$recv($recv(anObject)._class())._removeCompiledMethod_(method); | ||
$2=result; | ||
return $2; | ||
return result; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -749,6 +718,4 @@ }, function($ctx1) {$ctx1.fill(self,"evaluateExpression:on:",{aString:aString,anObject:anObject,result:result,method:method},$globals.Compiler)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
compiledMethod=self._eval_forPackage_(self._compile_forClass_protocol_(aString,aBehavior,anotherString),$recv(aBehavior)._packageOfProtocol_(anotherString)); | ||
$1=$recv($recv($ClassBuilder())._new())._installMethod_forClass_protocol_(compiledMethod,aBehavior,anotherString); | ||
return $1; | ||
return $recv($recv($ClassBuilder())._new())._installMethod_forClass_protocol_(compiledMethod,aBehavior,anotherString); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -777,5 +744,3 @@ }, function($ctx1) {$ctx1.fill(self,"install:forClass:protocol:",{aString:aString,aBehavior:aBehavior,anotherString:anotherString,compiledMethod:compiledMethod},$globals.Compiler)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv($Smalltalk())._parse_(aString); | ||
return $1; | ||
return $recv($Smalltalk())._parse_(aString); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -803,9 +768,8 @@ }, function($ctx1) {$ctx1.fill(self,"parse:",{aString:aString},$globals.Compiler)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$1; | ||
$2=$recv("doIt ^ [ ".__comma(aString)).__comma(" ] value"); | ||
var $1; | ||
$1=$recv("doIt ^ [ ".__comma(aString)).__comma(" ] value"); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx[","]=1; | ||
//>>excludeEnd("ctx"); | ||
$1=self._parse_($2); | ||
return $1; | ||
return self._parse_($1); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -903,10 +867,9 @@ }, function($ctx1) {$ctx1.fill(self,"parseExpression:",{aString:aString},$globals.Compiler)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$1,$receiver; | ||
$2=self["@source"]; | ||
if(($receiver = $2) == null || $receiver.isNil){ | ||
$1=""; | ||
var $1,$receiver; | ||
$1=self["@source"]; | ||
if(($receiver = $1) == null || $receiver.isNil){ | ||
return ""; | ||
} else { | ||
$1=$2; | ||
return $1; | ||
}; | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -950,5 +913,3 @@ }, function($ctx1) {$ctx1.fill(self,"source",{},$globals.Compiler)}); | ||
var self=this; | ||
var $1; | ||
$1=self["@unknownVariables"]; | ||
return $1; | ||
return self["@unknownVariables"]; | ||
@@ -1072,3 +1033,3 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $1,$2,$3,$4; | ||
var $1; | ||
var $early={}; | ||
@@ -1090,4 +1051,3 @@ try { | ||
//>>excludeEnd("ctx"); | ||
$1=self._alert_($recv(ex)._messageText()); | ||
throw $early=[$1]; | ||
throw $early=[self._alert_($recv(ex)._messageText())]; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1097,7 +1057,6 @@ }, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1,2)}); | ||
})); | ||
$2=$recv($AISemanticAnalyzer())._on_($recv($recv(aContext)._receiver())._class()); | ||
$recv($2)._context_(aContext); | ||
$3=$recv($2)._visit_(ast); | ||
$4=$recv(aContext)._evaluateNode_(ast); | ||
return $4; | ||
$1=$recv($AISemanticAnalyzer())._on_($recv($recv(aContext)._receiver())._class()); | ||
$recv($1)._context_(aContext); | ||
$recv($1)._visit_(ast); | ||
return $recv(aContext)._evaluateNode_(ast); | ||
} | ||
@@ -1127,5 +1086,3 @@ catch(e) {if(e===$early)return e[0]; throw e} | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(anObject)._evaluate_on_(aString,self); | ||
return $1; | ||
return $recv(anObject)._evaluate_on_(aString,self); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1156,3 +1113,2 @@ }, function($ctx1) {$ctx1.fill(self,"evaluate:for:",{aString:aString,anObject:anObject},$globals.Evaluator)}); | ||
//>>excludeEnd("ctx"); | ||
var $1,$2; | ||
var $early={}; | ||
@@ -1173,4 +1129,3 @@ try { | ||
//>>excludeEnd("ctx"); | ||
$1=self._alert_($recv(ex)._messageText()); | ||
throw $early=[$1]; | ||
throw $early=[self._alert_($recv(ex)._messageText())]; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1180,4 +1135,3 @@ }, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1,2)}); | ||
})); | ||
$2=$recv(compiler)._evaluateExpression_on_(aString,anObject); | ||
return $2; | ||
return $recv(compiler)._evaluateExpression_on_(aString,anObject); | ||
} | ||
@@ -1208,5 +1162,3 @@ catch(e) {if(e===$early)return e[0]; throw e} | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self._new())._evaluate_for_(aString,anObject); | ||
return $1; | ||
return $recv(self._new())._evaluate_for_(aString,anObject); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1235,10 +1187,9 @@ }, function($ctx1) {$ctx1.fill(self,"evaluate:for:",{aString:aString,anObject:anObject},$globals.Evaluator.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$1; | ||
$2=$recv($recv($Smalltalk())._reservedWords())._includes_(self); | ||
if($core.assert($2)){ | ||
$1=self.__comma("_"); | ||
var $1; | ||
$1=$recv($recv($Smalltalk())._reservedWords())._includes_(self); | ||
if($core.assert($1)){ | ||
return self.__comma("_"); | ||
} else { | ||
$1=self; | ||
return self; | ||
}; | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1245,0 +1196,0 @@ }, function($ctx1) {$ctx1.fill(self,"asVariableName",{},$globals.String)}); |
@@ -17,5 +17,3 @@ define("amber_core/Kernel-Announcements", ["amber/boot", "amber_core/Kernel-Objects"], function($boot){"use strict"; | ||
var self=this; | ||
var $1; | ||
$1=self["@announcementClass"]; | ||
return $1; | ||
return self["@announcementClass"]; | ||
@@ -89,16 +87,16 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $3,$4,$2,$1,$receiver; | ||
$3=$recv($Smalltalk())._globals(); | ||
var $2,$3,$1,$receiver; | ||
$2=$recv($Smalltalk())._globals(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx["globals"]=1; | ||
//>>excludeEnd("ctx"); | ||
$4=$recv(self._announcementClass())._name(); | ||
$3=$recv(self._announcementClass())._name(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx["name"]=1; | ||
//>>excludeEnd("ctx"); | ||
$2=$recv($3)._at_($4); | ||
$1=$recv($2)._at_($3); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx["at:"]=1; | ||
//>>excludeEnd("ctx"); | ||
if(($receiver = $2) == null || $receiver.isNil){ | ||
if(($receiver = $1) == null || $receiver.isNil){ | ||
return false; | ||
@@ -108,5 +106,4 @@ } else { | ||
class_=$receiver; | ||
$1=$recv($recv($recv($Smalltalk())._globals())._at_($recv($recv($recv(anAnnouncement)._class())._theNonMetaClass())._name()))._includesBehavior_(class_); | ||
return $recv($recv($recv($Smalltalk())._globals())._at_($recv($recv($recv(anAnnouncement)._class())._theNonMetaClass())._name()))._includesBehavior_(class_); | ||
}; | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -134,5 +131,3 @@ }, function($ctx1) {$ctx1.fill(self,"handlesAnnouncement:",{anAnnouncement:anAnnouncement},$globals.AnnouncementSubscription)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self._valuable())._receiver(); | ||
return $1; | ||
return $recv(self._valuable())._receiver(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -157,5 +152,3 @@ }, function($ctx1) {$ctx1.fill(self,"receiver",{},$globals.AnnouncementSubscription)}); | ||
var self=this; | ||
var $1; | ||
$1=self["@valuable"]; | ||
return $1; | ||
return self["@valuable"]; | ||
@@ -203,5 +196,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@receiver"]; | ||
return $1; | ||
return self["@receiver"]; | ||
@@ -243,5 +234,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@valuable"]; | ||
return $1; | ||
return self["@valuable"]; | ||
@@ -286,5 +275,3 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self._valuable())._value(); | ||
return $1; | ||
return $recv(self._valuable())._value(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -312,5 +299,3 @@ }, function($ctx1) {$ctx1.fill(self,"value",{},$globals.AnnouncementValuable)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self._valuable())._value_(anObject); | ||
return $1; | ||
return $recv(self._valuable())._value_(anObject); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -379,5 +364,5 @@ }, function($ctx1) {$ctx1.fill(self,"value:",{anObject:anObject},$globals.AnnouncementValuable)}); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.supercall = true, | ||
$ctx1.supercall = true, | ||
//>>excludeEnd("ctx"); | ||
$globals.Announcer.superclass.fn.prototype._initialize.apply($recv(self), [])); | ||
($globals.Announcer.superclass||$boot.dnu).fn.prototype._initialize.apply($recv(self), [])); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -436,3 +421,3 @@ $ctx1.supercall = false; | ||
//>>excludeEnd("ctx"); | ||
var $1,$3,$4,$6,$7,$5,$8,$2; | ||
var $1,$3,$5,$6,$4,$2; | ||
$1=self["@subscriptions"]; | ||
@@ -443,12 +428,11 @@ $3=$recv($AnnouncementSubscription())._new(); | ||
//>>excludeEnd("ctx"); | ||
$4=$3; | ||
$6=$recv($AnnouncementValuable())._new(); | ||
$recv($6)._valuable_(aBlock); | ||
$recv($6)._receiver_(aReceiver); | ||
$7=$recv($6)._yourself(); | ||
$5=$recv($AnnouncementValuable())._new(); | ||
$recv($5)._valuable_(aBlock); | ||
$recv($5)._receiver_(aReceiver); | ||
$6=$recv($5)._yourself(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx["yourself"]=1; | ||
//>>excludeEnd("ctx"); | ||
$5=$7; | ||
$recv($4)._valuable_($5); | ||
$4=$6; | ||
$recv($3)._valuable_($4); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -458,4 +442,3 @@ $ctx1.sendIdx["valuable:"]=1; | ||
$recv($3)._announcementClass_(aClass); | ||
$8=$recv($3)._yourself(); | ||
$2=$8; | ||
$2=$recv($3)._yourself(); | ||
$recv($1)._add_($2); | ||
@@ -487,7 +470,6 @@ return self; | ||
//>>excludeEnd("ctx"); | ||
var $1,$2; | ||
var $1; | ||
$1=$recv($AnnouncementSubscription())._new(); | ||
$recv($1)._announcementClass_(aClass); | ||
$2=$recv($1)._yourself(); | ||
subscription=$2; | ||
subscription=$recv($1)._yourself(); | ||
$recv(subscription)._valuable_((function(ann){ | ||
@@ -529,3 +511,3 @@ //>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
//>>excludeEnd("ctx"); | ||
var $1,$3,$4,$6,$7,$5,$8,$2; | ||
var $1,$3,$5,$6,$4,$2; | ||
$1=self["@subscriptions"]; | ||
@@ -536,15 +518,13 @@ $3=$recv($AnnouncementSubscription())._new(); | ||
//>>excludeEnd("ctx"); | ||
$4=$3; | ||
$6=$recv($MessageSend())._new(); | ||
$recv($6)._receiver_(anObject); | ||
$recv($6)._selector_(aSelector); | ||
$7=$recv($6)._yourself(); | ||
$5=$recv($MessageSend())._new(); | ||
$recv($5)._receiver_(anObject); | ||
$recv($5)._selector_(aSelector); | ||
$6=$recv($5)._yourself(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx["yourself"]=1; | ||
//>>excludeEnd("ctx"); | ||
$5=$7; | ||
$recv($4)._valuable_($5); | ||
$4=$6; | ||
$recv($3)._valuable_($4); | ||
$recv($3)._announcementClass_(aClass); | ||
$8=$recv($3)._yourself(); | ||
$2=$8; | ||
$2=$recv($3)._yourself(); | ||
$recv($1)._add_($2); | ||
@@ -614,18 +594,17 @@ return self; | ||
//>>excludeEnd("ctx"); | ||
var $2,$1,$receiver; | ||
$2=self["@current"]; | ||
if(($receiver = $2) == null || $receiver.isNil){ | ||
var $1,$receiver; | ||
$1=self["@current"]; | ||
if(($receiver = $1) == null || $receiver.isNil){ | ||
self["@current"]=( | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.supercall = true, | ||
$ctx1.supercall = true, | ||
//>>excludeEnd("ctx"); | ||
$globals.SystemAnnouncer.klass.superclass.fn.prototype._new.apply($recv(self), [])); | ||
($globals.SystemAnnouncer.klass.superclass||$boot.dnu).fn.prototype._new.apply($recv(self), [])); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.supercall = false; | ||
//>>excludeEnd("ctx");; | ||
$1=self["@current"]; | ||
return self["@current"]; | ||
} else { | ||
$1=$2; | ||
return $1; | ||
}; | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -703,5 +682,3 @@ }, function($ctx1) {$ctx1.fill(self,"current",{},$globals.SystemAnnouncer.klass)}); | ||
var self=this; | ||
var $1; | ||
$1=self["@theClass"]; | ||
return $1; | ||
return self["@theClass"]; | ||
@@ -767,5 +744,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@oldClass"]; | ||
return $1; | ||
return self["@oldClass"]; | ||
@@ -813,5 +788,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@oldPackage"]; | ||
return $1; | ||
return self["@oldPackage"]; | ||
@@ -871,5 +844,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@method"]; | ||
return $1; | ||
return self["@method"]; | ||
@@ -923,5 +894,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@oldMethod"]; | ||
return $1; | ||
return self["@oldMethod"]; | ||
@@ -969,5 +938,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@oldProtocol"]; | ||
return $1; | ||
return self["@oldProtocol"]; | ||
@@ -1021,5 +988,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@package"]; | ||
return $1; | ||
return self["@package"]; | ||
@@ -1094,12 +1059,11 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $2,$1,$receiver; | ||
$2=self._theClass(); | ||
if(($receiver = $2) == null || $receiver.isNil){ | ||
$1=$2; | ||
var $1,$receiver; | ||
$1=self._theClass(); | ||
if(($receiver = $1) == null || $receiver.isNil){ | ||
return $1; | ||
} else { | ||
var class_; | ||
class_=$receiver; | ||
$1=$recv(class_)._packageOfProtocol_(self._protocol()); | ||
return $recv(class_)._packageOfProtocol_(self._protocol()); | ||
}; | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1124,5 +1088,3 @@ }, function($ctx1) {$ctx1.fill(self,"package",{},$globals.ProtocolAnnouncement)}); | ||
var self=this; | ||
var $1; | ||
$1=self["@protocol"]; | ||
return $1; | ||
return self["@protocol"]; | ||
@@ -1164,5 +1126,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@theClass"]; | ||
return $1; | ||
return self["@theClass"]; | ||
@@ -1169,0 +1129,0 @@ }, |
@@ -161,5 +161,3 @@ define("amber_core/Kernel-Exceptions", ["amber/boot", "amber_core/Kernel-Objects"], function($boot){"use strict"; | ||
var self=this; | ||
var $1; | ||
$1=self["@messageText"]; | ||
return $1; | ||
return self["@messageText"]; | ||
@@ -285,5 +283,3 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=self._signalerContextFrom_(self._context()); | ||
return $1; | ||
return self._signalerContextFrom_(self._context()); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -311,16 +307,16 @@ }, function($ctx1) {$ctx1.fill(self,"signalerContext",{},$globals.Error)}); | ||
//>>excludeEnd("ctx"); | ||
var $4,$3,$2,$1; | ||
$1=$recv(aContext)._findContextSuchThat_((function(context){ | ||
var $3,$2,$1; | ||
return $recv(aContext)._findContextSuchThat_((function(context){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
return $core.withContext(function($ctx2) { | ||
//>>excludeEnd("ctx"); | ||
$4=$recv(context)._receiver(); | ||
$3=$recv(context)._receiver(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx2.sendIdx["receiver"]=1; | ||
//>>excludeEnd("ctx"); | ||
$3=$recv($4).__eq_eq(self); | ||
$2=$recv($3).__eq_eq(self); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx2.sendIdx["=="]=1; | ||
//>>excludeEnd("ctx"); | ||
$2=$recv($3)._or_((function(){ | ||
$1=$recv($2)._or_((function(){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -334,3 +330,3 @@ return $core.withContext(function($ctx3) { | ||
})); | ||
return $recv($2)._not(); | ||
return $recv($1)._not(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -340,3 +336,2 @@ }, function($ctx2) {$ctx2.fillBlock({context:context},$ctx1,1)}); | ||
})); | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -407,5 +402,3 @@ }, function($ctx1) {$ctx1.fill(self,"signalerContextFrom:",{aContext:aContext},$globals.Error)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self._new())._signal(); | ||
return $1; | ||
return $recv(self._new())._signal(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -433,5 +426,3 @@ }, function($ctx1) {$ctx1.fill(self,"signal",{},$globals.Error.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self._new())._signal_(aString); | ||
return $1; | ||
return $recv(self._new())._signal_(aString); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -482,16 +473,16 @@ }, function($ctx1) {$ctx1.fill(self,"signal:",{aString:aString},$globals.Error.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $4,$3,$2,$1; | ||
$1=$recv(aContext)._findContextSuchThat_((function(context){ | ||
var $3,$2,$1; | ||
return $recv(aContext)._findContextSuchThat_((function(context){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
return $core.withContext(function($ctx2) { | ||
//>>excludeEnd("ctx"); | ||
$4=$recv(context)._receiver(); | ||
$3=$recv(context)._receiver(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx2.sendIdx["receiver"]=1; | ||
//>>excludeEnd("ctx"); | ||
$3=$recv($4).__eq_eq(self); | ||
$2=$recv($3).__eq_eq(self); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx2.sendIdx["=="]=1; | ||
//>>excludeEnd("ctx"); | ||
$2=$recv($3)._or_((function(){ | ||
$1=$recv($2)._or_((function(){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -516,3 +507,3 @@ return $core.withContext(function($ctx3) { | ||
//>>excludeEnd("ctx"); | ||
return $recv($2)._not(); | ||
return $recv($1)._not(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -522,3 +513,2 @@ }, function($ctx2) {$ctx2.fillBlock({context:context},$ctx1,1)}); | ||
})); | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -573,5 +563,3 @@ }, function($ctx1) {$ctx1.fill(self,"signalerContextFrom:",{aContext:aContext},$globals.Halt)}); | ||
var self=this; | ||
var $1; | ||
$1=self["@exception"]; | ||
return $1; | ||
return self["@exception"]; | ||
@@ -641,8 +629,6 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $2,$3,$1; | ||
$2=self._new(); | ||
$recv($2)._exception_(anException); | ||
$3=$recv($2)._yourself(); | ||
$1=$3; | ||
return $1; | ||
var $1; | ||
$1=self._new(); | ||
$recv($1)._exception_(anException); | ||
return $recv($1)._yourself(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -670,9 +656,7 @@ }, function($ctx1) {$ctx1.fill(self,"on:",{anException:anException},$globals.JavaScriptException.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$3,$1; | ||
$2=self._new(); | ||
$recv($2)._exception_(anException); | ||
$recv($2)._context_(aMethodContext); | ||
$3=$recv($2)._yourself(); | ||
$1=$3; | ||
return $1; | ||
var $1; | ||
$1=self._new(); | ||
$recv($1)._exception_(anException); | ||
$recv($1)._context_(aMethodContext); | ||
return $recv($1)._yourself(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -702,5 +686,3 @@ }, function($ctx1) {$ctx1.fill(self,"on:context:",{anException:anException,aMethodContext:aMethodContext},$globals.JavaScriptException.klass)}); | ||
var self=this; | ||
var $1; | ||
$1=self["@message"]; | ||
return $1; | ||
return self["@message"]; | ||
@@ -770,5 +752,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@receiver"]; | ||
return $1; | ||
return self["@receiver"]; | ||
@@ -816,5 +796,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@object"]; | ||
return $1; | ||
return self["@object"]; | ||
@@ -821,0 +799,0 @@ }, |
@@ -17,5 +17,3 @@ define("amber_core/Platform-Browser", ["amber/boot", "amber_core/Kernel-Objects"], function($boot){"use strict"; | ||
var self=this; | ||
var $1; | ||
$1=window; | ||
return $1; | ||
return window; | ||
@@ -43,8 +41,7 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $1,$receiver; | ||
var $receiver; | ||
if(($receiver = $XMLHttpRequest()) == null || $receiver.isNil){ | ||
self._error_("XMLHttpRequest not available."); | ||
} else { | ||
$1=$recv($NativeFunction())._constructorOf_($XMLHttpRequest()); | ||
return $1; | ||
return $recv($NativeFunction())._constructorOf_($XMLHttpRequest()); | ||
}; | ||
@@ -133,5 +130,3 @@ return self; | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(window)._alert_(aString); | ||
return $1; | ||
return $recv(window)._alert_(aString); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -159,5 +154,3 @@ }, function($ctx1) {$ctx1.fill(self,"alert:",{aString:aString},$globals.BrowserTerminal)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(window)._confirm_(aString); | ||
return $1; | ||
return $recv(window)._confirm_(aString); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -185,5 +178,3 @@ }, function($ctx1) {$ctx1.fill(self,"confirm:",{aString:aString},$globals.BrowserTerminal)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(window)._prompt_(aString); | ||
return $1; | ||
return $recv(window)._prompt_(aString); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -211,5 +202,3 @@ }, function($ctx1) {$ctx1.fill(self,"prompt:",{aString:aString},$globals.BrowserTerminal)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(window)._prompt_default_(aString,defaultString); | ||
return $1; | ||
return $recv(window)._prompt_default_(aString,defaultString); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -291,5 +280,3 @@ }, function($ctx1) {$ctx1.fill(self,"prompt:default:",{aString:aString,defaultString:defaultString},$globals.BrowserTerminal)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=self._postMessageTo_origin_(aFrame,"*"); | ||
return $1; | ||
return self._postMessageTo_origin_(aFrame,"*"); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -296,0 +283,0 @@ }, function($ctx1) {$ctx1.fill(self,"postMessageTo:",{aFrame:aFrame},$globals.Object)}); |
@@ -17,5 +17,3 @@ define("amber_core/Platform-Node", ["amber/boot", "amber_core/Kernel-Objects"], function($boot){"use strict"; | ||
var self=this; | ||
var $1; | ||
$1=global; | ||
return $1; | ||
return global; | ||
@@ -42,8 +40,7 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $1,$receiver; | ||
var $receiver; | ||
if(($receiver = $XMLHttpRequest()) == null || $receiver.isNil){ | ||
self._error_("XMLHttpRequest not available."); | ||
} else { | ||
$1=$recv($XMLHttpRequest())._new(); | ||
return $1; | ||
return $recv($XMLHttpRequest())._new(); | ||
}; | ||
@@ -50,0 +47,0 @@ return self; |
@@ -495,4 +495,3 @@ define("amber_core/SUnit-Tests", ["amber/boot", "amber_core/SUnit"], function($boot){"use strict"; | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv($recv(aCollection)._collect_((function(each){ | ||
return $recv($recv(aCollection)._collect_((function(each){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -506,3 +505,2 @@ return $core.withContext(function($ctx2) { | ||
})))._asSet(); | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -509,0 +507,0 @@ }, function($ctx1) {$ctx1.fill(self,"selectorSetOf:",{aCollection:aCollection},$globals.SUnitAsyncTest)}); |
171
src/SUnit.js
@@ -17,5 +17,3 @@ define("amber_core/SUnit", ["amber/boot", "amber_core/Kernel-Objects", "amber_core/Kernel-Exceptions", "amber_core/Kernel-Infrastructure", "amber_core/Kernel-Classes"], function($boot){"use strict"; | ||
var self=this; | ||
var $1; | ||
$1=self["@result"]; | ||
return $1; | ||
return self["@result"]; | ||
@@ -116,19 +114,18 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $2,$6,$5,$4,$3,$1; | ||
$2=$recv(actual).__eq(expected); | ||
$6=$recv(expected)._printString(); | ||
var $1,$5,$4,$3,$2; | ||
$1=$recv(actual).__eq(expected); | ||
$5=$recv(expected)._printString(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx["printString"]=1; | ||
//>>excludeEnd("ctx"); | ||
$5="Expected: ".__comma($6); | ||
$4=$recv($5).__comma(" but was: "); | ||
$4="Expected: ".__comma($5); | ||
$3=$recv($4).__comma(" but was: "); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx[","]=2; | ||
//>>excludeEnd("ctx"); | ||
$3=$recv($4).__comma($recv(actual)._printString()); | ||
$2=$recv($3).__comma($recv(actual)._printString()); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx[","]=1; | ||
//>>excludeEnd("ctx"); | ||
$1=self._assert_description_($2,$3); | ||
return $1; | ||
return self._assert_description_($1,$2); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -157,11 +154,11 @@ }, function($ctx1) {$ctx1.fill(self,"assert:equals:",{actual:actual,expected:expected},$globals.TestCase)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$1; | ||
var $1; | ||
self._errorIfNotAsync_("#async"); | ||
c=self["@context"]; | ||
$1=(function(){ | ||
return (function(){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
return $core.withContext(function($ctx2) { | ||
//>>excludeEnd("ctx"); | ||
$2=self._isAsync(); | ||
if($core.assert($2)){ | ||
$1=self._isAsync(); | ||
if($core.assert($1)){ | ||
return $recv(c)._execute_(aBlock); | ||
@@ -173,3 +170,2 @@ }; | ||
}); | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -293,5 +289,3 @@ }, function($ctx1) {$ctx1.fill(self,"async:",{aBlock:aBlock,c:c},$globals.TestCase)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self["@asyncTimeout"])._notNil(); | ||
return $1; | ||
return $recv(self["@asyncTimeout"])._notNil(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -366,5 +360,3 @@ }, function($ctx1) {$ctx1.fill(self,"isAsync",{},$globals.TestCase)}); | ||
var self=this; | ||
var $1; | ||
$1=self["@testSelector"]; | ||
return $1; | ||
return self["@testSelector"]; | ||
@@ -524,6 +516,6 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $1,$2; | ||
var $1; | ||
$1=$recv($TestFailure())._new(); | ||
$recv($1)._messageText_(aString); | ||
$2=$recv($1)._signal(); | ||
$recv($1)._signal(); | ||
return self; | ||
@@ -612,3 +604,3 @@ //>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
//>>excludeEnd("ctx"); | ||
var $1,$2; | ||
var $1; | ||
selectors=self._testSelectors(); | ||
@@ -619,4 +611,3 @@ $1=self._shouldInheritSelectors(); | ||
}; | ||
$2=selectors; | ||
return $2; | ||
return selectors; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -644,4 +635,3 @@ }, function($ctx1) {$ctx1.fill(self,"allTestSelectors",{selectors:selectors},$globals.TestCase.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self._allTestSelectors())._collect_((function(each){ | ||
return $recv(self._allTestSelectors())._collect_((function(each){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -655,3 +645,2 @@ return $core.withContext(function($ctx2) { | ||
})); | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -697,5 +686,3 @@ }, function($ctx1) {$ctx1.fill(self,"buildSuite",{},$globals.TestCase.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self._name()).__eq("TestCase"); | ||
return $1; | ||
return $recv(self._name()).__eq("TestCase"); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -742,8 +729,6 @@ }, function($ctx1) {$ctx1.fill(self,"isAbstract",{},$globals.TestCase.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$3,$1; | ||
$2=self._new(); | ||
$recv($2)._setTestSelector_(aSelector); | ||
$3=$recv($2)._yourself(); | ||
$1=$3; | ||
return $1; | ||
var $1; | ||
$1=self._new(); | ||
$recv($1)._setTestSelector_(aSelector); | ||
return $recv($1)._yourself(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -771,5 +756,3 @@ }, function($ctx1) {$ctx1.fill(self,"selector:",{aSelector:aSelector},$globals.TestCase.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=self.__tild_eq(self._lookupHierarchyRoot()); | ||
return $1; | ||
return self.__tild_eq(self._lookupHierarchyRoot()); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -797,4 +780,3 @@ }, function($ctx1) {$ctx1.fill(self,"shouldInheritSelectors",{},$globals.TestCase.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv($recv(self._methodDictionary())._keys())._select_((function(each){ | ||
return $recv($recv(self._methodDictionary())._keys())._select_((function(each){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -808,3 +790,2 @@ return $core.withContext(function($ctx2) { | ||
})); | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -959,8 +940,6 @@ }, function($ctx1) {$ctx1.fill(self,"testSelectors",{},$globals.TestCase.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $2,$3,$1; | ||
$2=self._new(); | ||
$recv($2)._testCase_(aTestCase); | ||
$3=$recv($2)._yourself(); | ||
$1=$3; | ||
return $1; | ||
var $1; | ||
$1=self._new(); | ||
$recv($1)._testCase_(aTestCase); | ||
return $recv($1)._yourself(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1004,5 +983,5 @@ }, function($ctx1) {$ctx1.fill(self,"testCase:",{aTestCase:aTestCase},$globals.TestContext.klass)}); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx3.supercall = true, | ||
$ctx3.supercall = true, | ||
//>>excludeEnd("ctx"); | ||
$globals.ReportingTestContext.superclass.fn.prototype._execute_.apply($recv(self), [aBlock])); | ||
($globals.ReportingTestContext.superclass||$boot.dnu).fn.prototype._execute_.apply($recv(self), [aBlock])); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1146,16 +1125,14 @@ $ctx3.supercall = false; | ||
//>>excludeEnd("ctx"); | ||
var $2,$3,$1; | ||
$2=( | ||
var $1; | ||
$1=( | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.supercall = true, | ||
$ctx1.supercall = true, | ||
//>>excludeEnd("ctx"); | ||
$globals.ReportingTestContext.klass.superclass.fn.prototype._testCase_.apply($recv(self), [aTestCase])); | ||
($globals.ReportingTestContext.klass.superclass||$boot.dnu).fn.prototype._testCase_.apply($recv(self), [aTestCase])); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.supercall = false; | ||
//>>excludeEnd("ctx");; | ||
$recv($2)._result_(aTestResult); | ||
$recv($2)._finished_(aBlock); | ||
$3=$recv($2)._yourself(); | ||
$1=$3; | ||
return $1; | ||
$recv($1)._result_(aTestResult); | ||
$recv($1)._finished_(aBlock); | ||
return $recv($1)._yourself(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1239,5 +1216,3 @@ }, function($ctx1) {$ctx1.fill(self,"testCase:result:finished:",{aTestCase:aTestCase,aTestResult:aTestResult,aBlock:aBlock},$globals.ReportingTestContext.klass)}); | ||
var self=this; | ||
var $1; | ||
$1=self["@errors"]; | ||
return $1; | ||
return self["@errors"]; | ||
@@ -1260,5 +1235,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@failures"]; | ||
return $1; | ||
return self["@failures"]; | ||
@@ -1312,5 +1285,5 @@ }, | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.supercall = true, | ||
$ctx1.supercall = true, | ||
//>>excludeEnd("ctx"); | ||
$globals.TestResult.superclass.fn.prototype._initialize.apply($recv(self), [])); | ||
($globals.TestResult.superclass||$boot.dnu).fn.prototype._initialize.apply($recv(self), [])); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1350,12 +1323,11 @@ $ctx1.supercall = false; | ||
//>>excludeEnd("ctx"); | ||
var $3,$2,$1; | ||
$3=self._runs(); | ||
var $2,$1; | ||
$2=self._runs(); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.sendIdx["runs"]=1; | ||
//>>excludeEnd("ctx"); | ||
$2=$recv($3).__eq_eq(self._total()); | ||
if(!$core.assert($2)){ | ||
$1=$recv(aBlock)._value_($recv(self._runs()).__plus((1))); | ||
$1=$recv($2).__eq_eq(self._total()); | ||
if(!$core.assert($1)){ | ||
return $recv(aBlock)._value_($recv(self._runs()).__plus((1))); | ||
}; | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1442,5 +1414,3 @@ }, function($ctx1) {$ctx1.fill(self,"nextRunDo:",{aBlock:aBlock},$globals.TestResult)}); | ||
var self=this; | ||
var $1; | ||
$1=self["@runs"]; | ||
return $1; | ||
return self["@runs"]; | ||
@@ -1501,5 +1471,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@timestamp"]; | ||
return $1; | ||
return self["@timestamp"]; | ||
@@ -1522,5 +1490,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@total"]; | ||
return $1; | ||
return self["@total"]; | ||
@@ -1568,5 +1534,3 @@ }, | ||
var self=this; | ||
var $1; | ||
$1=self["@announcer"]; | ||
return $1; | ||
return self["@announcer"]; | ||
@@ -1593,4 +1557,3 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv($ReportingTestContext())._testCase_result_finished_($recv(self["@suite"])._at_(anInteger),self["@result"],(function(){ | ||
return $recv($ReportingTestContext())._testCase_result_finished_($recv(self["@suite"])._at_(anInteger),self["@result"],(function(){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1604,3 +1567,2 @@ return $core.withContext(function($ctx2) { | ||
})); | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1633,5 +1595,5 @@ }, function($ctx1) {$ctx1.fill(self,"contextOf:",{anInteger:anInteger},$globals.TestSuiteRunner)}); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.supercall = true, | ||
$ctx1.supercall = true, | ||
//>>excludeEnd("ctx"); | ||
$globals.TestSuiteRunner.superclass.fn.prototype._initialize.apply($recv(self), [])); | ||
($globals.TestSuiteRunner.superclass||$boot.dnu).fn.prototype._initialize.apply($recv(self), [])); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1680,5 +1642,3 @@ $ctx1.supercall = false; | ||
var self=this; | ||
var $1; | ||
$1=self["@result"]; | ||
return $1; | ||
return self["@result"]; | ||
@@ -1799,13 +1759,12 @@ }, | ||
//>>excludeEnd("ctx"); | ||
var $2,$1; | ||
$2=( | ||
var $1; | ||
$1=( | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.supercall = true, | ||
$ctx1.supercall = true, | ||
//>>excludeEnd("ctx"); | ||
$globals.TestSuiteRunner.klass.superclass.fn.prototype._new.apply($recv(self), [])); | ||
($globals.TestSuiteRunner.klass.superclass||$boot.dnu).fn.prototype._new.apply($recv(self), [])); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
$ctx1.supercall = false; | ||
//>>excludeEnd("ctx");; | ||
$1=$recv($2)._suite_(aCollection); | ||
return $1; | ||
return $recv($1)._suite_(aCollection); | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1834,4 +1793,3 @@ }, function($ctx1) {$ctx1.fill(self,"on:",{aCollection:aCollection},$globals.TestSuiteRunner.klass)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self._includesBehavior_($TestCase()))._and_((function(){ | ||
return $recv(self._includesBehavior_($TestCase()))._and_((function(){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1845,3 +1803,2 @@ return $core.withContext(function($ctx2) { | ||
})); | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1869,4 +1826,3 @@ }, function($ctx1) {$ctx1.fill(self,"isTestClass",{},$globals.Behavior)}); | ||
//>>excludeEnd("ctx"); | ||
var $1; | ||
$1=$recv(self._classes())._anySatisfy_((function(each){ | ||
return $recv(self._classes())._anySatisfy_((function(each){ | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1880,3 +1836,2 @@ return $core.withContext(function($ctx2) { | ||
})); | ||
return $1; | ||
//>>excludeStart("ctx", pragmas.excludeDebugContexts); | ||
@@ -1883,0 +1838,0 @@ }, function($ctx1) {$ctx1.fill(self,"isTestPackage",{},$globals.Package)}); |
@@ -42,3 +42,3 @@ /* ==================================================================== | ||
define("amber/boot", ['require', './browser-compatibility'], function (require) { | ||
define(['require', './browser-compatibility'], function (require) { | ||
@@ -1200,3 +1200,9 @@ /* Reconfigurable micro composition system, https://github.com/amber-smalltalk/brikz */ | ||
return {api: api, nil: brikz.root.nil, globals: globals, asReceiver: brikz.asReceiver.asReceiver}; | ||
return { | ||
api: api, | ||
nil: brikz.root.nil, | ||
dnu: brikz.root.rootAsClass, | ||
globals: globals, | ||
asReceiver: brikz.asReceiver.asReceiver | ||
}; | ||
}); |
define([ | ||
'./helpers', // pre-fetch, dep of ./deploy | ||
'./deploy', // pre-fetch, dep of ./lang | ||
'./lang', | ||
'./helpers', // pre-fetch, dep of ./deploy | ||
'./deploy', // pre-fetch, dep of ./lang | ||
'./lang', | ||
// --- packages of the development only Amber begin here --- | ||
@@ -6,0 +6,0 @@ 'amber_core/SUnit', |
@@ -1,2 +0,2 @@ | ||
define("amber/helpers", ["amber/boot", "require"], function (boot, require) { | ||
define(["amber/boot", "require"], function (boot, require) { | ||
var globals = boot.globals, | ||
@@ -3,0 +3,0 @@ exports = {}, |
define([ | ||
'./helpers', // pre-fetch, dep of ./deploy | ||
'./deploy', | ||
'./parser', | ||
// --- packages for the Amber reflection begin here --- | ||
'amber_core/Platform-ImportExport', | ||
'amber_core/Compiler-Core', | ||
'amber_core/Compiler-AST', | ||
'amber_core/Compiler-Semantic', | ||
'amber_core/Compiler-IR', | ||
'amber_core/Compiler-Inlining', | ||
'amber_core/Compiler-Interpreter' | ||
// --- packages for the Amber reflection end here --- | ||
'./helpers', // pre-fetch, dep of ./deploy | ||
'./deploy', | ||
'./parser', | ||
// --- packages for the Amber reflection begin here --- | ||
'amber_core/Platform-ImportExport', | ||
'amber_core/Compiler-Core', | ||
'amber_core/Compiler-AST', | ||
'amber_core/Compiler-Semantic', | ||
'amber_core/Compiler-IR', | ||
'amber_core/Compiler-Inlining', | ||
'amber_core/Compiler-Interpreter' | ||
// --- packages for the Amber reflection end here --- | ||
], function (amber) { return amber; }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3258666
78743