Kernel-Exceptions.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. define("amber_core/Kernel-Exceptions", ["amber/boot", "amber_core/Kernel-Objects"], function($boot){
  2. var smalltalk=$boot.vm,nil=$boot.nil,_st=$boot.asReceiver,globals=$boot.globals;
  3. smalltalk.addPackage('Kernel-Exceptions');
  4. smalltalk.packages["Kernel-Exceptions"].transport = {"type":"amd","amdNamespace":"amber_core"};
  5. smalltalk.addClass('Error', globals.Object, ['messageText'], 'Kernel-Exceptions');
  6. globals.Error.comment="From the ANSI standard:\x0a\x0aThis protocol describes the behavior of instances of class `Error`.\x0aThese are used to represent error conditions that prevent the normal continuation of processing.\x0aActual error exceptions used by an application may be subclasses of this class.\x0aAs `Error` is explicitly specified to be subclassable, conforming implementations must implement its behavior in a non-fragile manner.";
  7. smalltalk.addMethod(
  8. smalltalk.method({
  9. selector: "beHandled",
  10. protocol: 'accessing',
  11. fn: function (){
  12. var self=this;
  13. return smalltalk.withContext(function($ctx1) {
  14. self.amberHandled = true;
  15. return self}, function($ctx1) {$ctx1.fill(self,"beHandled",{},globals.Error)})},
  16. args: [],
  17. source: "beHandled\x0a\x09<self.amberHandled = true>",
  18. messageSends: [],
  19. referencedClasses: []
  20. }),
  21. globals.Error);
  22. smalltalk.addMethod(
  23. smalltalk.method({
  24. selector: "beUnhandled",
  25. protocol: 'accessing',
  26. fn: function (){
  27. var self=this;
  28. return smalltalk.withContext(function($ctx1) {
  29. self.amberHandled = false;
  30. return self}, function($ctx1) {$ctx1.fill(self,"beUnhandled",{},globals.Error)})},
  31. args: [],
  32. source: "beUnhandled\x0a\x09<self.amberHandled = false>",
  33. messageSends: [],
  34. referencedClasses: []
  35. }),
  36. globals.Error);
  37. smalltalk.addMethod(
  38. smalltalk.method({
  39. selector: "context",
  40. protocol: 'accessing',
  41. fn: function (){
  42. var self=this;
  43. return smalltalk.withContext(function($ctx1) {
  44. return self.context;
  45. return self}, function($ctx1) {$ctx1.fill(self,"context",{},globals.Error)})},
  46. args: [],
  47. source: "context\x0a\x09<return self.context>",
  48. messageSends: [],
  49. referencedClasses: []
  50. }),
  51. globals.Error);
  52. smalltalk.addMethod(
  53. smalltalk.method({
  54. selector: "initialize",
  55. protocol: 'initialization',
  56. fn: function (){
  57. var self=this;
  58. return smalltalk.withContext(function($ctx1) {
  59. self._messageText_("Errorclass: ".__comma(_st(self._class())._name()));
  60. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},globals.Error)})},
  61. args: [],
  62. source: "initialize\x0a\x09self messageText: 'Errorclass: ', (self class name).",
  63. messageSends: ["messageText:", ",", "name", "class"],
  64. referencedClasses: []
  65. }),
  66. globals.Error);
  67. smalltalk.addMethod(
  68. smalltalk.method({
  69. selector: "isSmalltalkError",
  70. protocol: 'testing',
  71. fn: function (){
  72. var self=this;
  73. return smalltalk.withContext(function($ctx1) {
  74. return self.smalltalkError === true;
  75. return self}, function($ctx1) {$ctx1.fill(self,"isSmalltalkError",{},globals.Error)})},
  76. args: [],
  77. source: "isSmalltalkError\x0a\x09<return self.smalltalkError === true>",
  78. messageSends: [],
  79. referencedClasses: []
  80. }),
  81. globals.Error);
  82. smalltalk.addMethod(
  83. smalltalk.method({
  84. selector: "jsStack",
  85. protocol: 'accessing',
  86. fn: function (){
  87. var self=this;
  88. return smalltalk.withContext(function($ctx1) {
  89. return self.stack;
  90. return self}, function($ctx1) {$ctx1.fill(self,"jsStack",{},globals.Error)})},
  91. args: [],
  92. source: "jsStack\x0a\x09<return self.stack>",
  93. messageSends: [],
  94. referencedClasses: []
  95. }),
  96. globals.Error);
  97. smalltalk.addMethod(
  98. smalltalk.method({
  99. selector: "messageText",
  100. protocol: 'accessing',
  101. fn: function (){
  102. var self=this;
  103. var $1;
  104. $1=self["@messageText"];
  105. return $1;
  106. },
  107. args: [],
  108. source: "messageText\x0a\x09^ messageText",
  109. messageSends: [],
  110. referencedClasses: []
  111. }),
  112. globals.Error);
  113. smalltalk.addMethod(
  114. smalltalk.method({
  115. selector: "messageText:",
  116. protocol: 'accessing',
  117. fn: function (aString){
  118. var self=this;
  119. self["@messageText"]=aString;
  120. return self},
  121. args: ["aString"],
  122. source: "messageText: aString\x0a\x09messageText := aString",
  123. messageSends: [],
  124. referencedClasses: []
  125. }),
  126. globals.Error);
  127. smalltalk.addMethod(
  128. smalltalk.method({
  129. selector: "resignal",
  130. protocol: 'signaling',
  131. fn: function (){
  132. var self=this;
  133. return smalltalk.withContext(function($ctx1) {
  134. self.amberHandled = false;
  135. throw(self);
  136. ;
  137. return self}, function($ctx1) {$ctx1.fill(self,"resignal",{},globals.Error)})},
  138. args: [],
  139. source: "resignal\x0a\x09\x22Resignal the receiver without changing its exception context\x22\x0a\x09\x0a\x09<\x0a\x09\x09self.amberHandled = false;\x0a\x09\x09throw(self);\x0a\x09>",
  140. messageSends: [],
  141. referencedClasses: []
  142. }),
  143. globals.Error);
  144. smalltalk.addMethod(
  145. smalltalk.method({
  146. selector: "signal",
  147. protocol: 'signaling',
  148. fn: function (){
  149. var self=this;
  150. return smalltalk.withContext(function($ctx1) {
  151. self.amberHandled = false;
  152. self.context = smalltalk.getThisContext();
  153. self.smalltalkError = true; throw(self)
  154. ;
  155. return self}, function($ctx1) {$ctx1.fill(self,"signal",{},globals.Error)})},
  156. args: [],
  157. source: "signal\x0a\x09<\x0a\x09\x09self.amberHandled = false;\x0a\x09\x09self.context = smalltalk.getThisContext(); \x0a\x09\x09self.smalltalkError = true; throw(self)\x0a\x09>",
  158. messageSends: [],
  159. referencedClasses: []
  160. }),
  161. globals.Error);
  162. smalltalk.addMethod(
  163. smalltalk.method({
  164. selector: "signal:",
  165. protocol: 'signaling',
  166. fn: function (aString){
  167. var self=this;
  168. return smalltalk.withContext(function($ctx1) {
  169. self._messageText_(aString);
  170. self._signal();
  171. return self}, function($ctx1) {$ctx1.fill(self,"signal:",{aString:aString},globals.Error)})},
  172. args: ["aString"],
  173. source: "signal: aString\x0a\x09self messageText: aString.\x0a\x09self signal",
  174. messageSends: ["messageText:", "signal"],
  175. referencedClasses: []
  176. }),
  177. globals.Error);
  178. smalltalk.addMethod(
  179. smalltalk.method({
  180. selector: "signalerContext",
  181. protocol: 'accessing',
  182. fn: function (){
  183. var self=this;
  184. return smalltalk.withContext(function($ctx1) {
  185. var $1;
  186. $1=self._signalerContextFrom_(self._context());
  187. return $1;
  188. }, function($ctx1) {$ctx1.fill(self,"signalerContext",{},globals.Error)})},
  189. args: [],
  190. source: "signalerContext\x0a\x09^ self signalerContextFrom: self context",
  191. messageSends: ["signalerContextFrom:", "context"],
  192. referencedClasses: []
  193. }),
  194. globals.Error);
  195. smalltalk.addMethod(
  196. smalltalk.method({
  197. selector: "signalerContextFrom:",
  198. protocol: 'accessing',
  199. fn: function (aContext){
  200. var self=this;
  201. return smalltalk.withContext(function($ctx1) {
  202. var $4,$3,$2,$1;
  203. $1=_st(aContext)._findContextSuchThat_((function(context){
  204. return smalltalk.withContext(function($ctx2) {
  205. $4=_st(context)._receiver();
  206. $ctx2.sendIdx["receiver"]=1;
  207. $3=_st($4).__eq_eq(self);
  208. $ctx2.sendIdx["=="]=1;
  209. $2=_st($3)._or_((function(){
  210. return smalltalk.withContext(function($ctx3) {
  211. return _st(_st(context)._receiver()).__eq_eq(self._class());
  212. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)})}));
  213. return _st($2)._not();
  214. }, function($ctx2) {$ctx2.fillBlock({context:context},$ctx1,1)})}));
  215. return $1;
  216. }, function($ctx1) {$ctx1.fill(self,"signalerContextFrom:",{aContext:aContext},globals.Error)})},
  217. args: ["aContext"],
  218. source: "signalerContextFrom: aContext\x0a\x09\x22Find the first sender of signal(:), the first context which is neither \x0a\x09for an instance method nor for a class side method of Exception (or subclass).\x0a\x09This will make sure that the same context is found for both, `Error signal` \x0a\x09and `Error new signal`\x22\x0a\x0a\x09^ aContext findContextSuchThat: [ :context |\x0a\x09\x09(context receiver == self \x0a\x09\x09or: [ context receiver == self class ]) not ]",
  219. messageSends: ["findContextSuchThat:", "not", "or:", "==", "receiver", "class"],
  220. referencedClasses: []
  221. }),
  222. globals.Error);
  223. smalltalk.addMethod(
  224. smalltalk.method({
  225. selector: "wasHandled",
  226. protocol: 'testing',
  227. fn: function (){
  228. var self=this;
  229. return smalltalk.withContext(function($ctx1) {
  230. return self.amberHandled || false;
  231. return self}, function($ctx1) {$ctx1.fill(self,"wasHandled",{},globals.Error)})},
  232. args: [],
  233. source: "wasHandled\x0a\x09<return self.amberHandled || false>",
  234. messageSends: [],
  235. referencedClasses: []
  236. }),
  237. globals.Error);
  238. smalltalk.addMethod(
  239. smalltalk.method({
  240. selector: "heliosClass",
  241. protocol: 'helios',
  242. fn: function (){
  243. var self=this;
  244. return "exception";
  245. },
  246. args: [],
  247. source: "heliosClass\x0a\x09^ 'exception'",
  248. messageSends: [],
  249. referencedClasses: []
  250. }),
  251. globals.Error.klass);
  252. smalltalk.addMethod(
  253. smalltalk.method({
  254. selector: "signal",
  255. protocol: 'instance creation',
  256. fn: function (){
  257. var self=this;
  258. return smalltalk.withContext(function($ctx1) {
  259. var $1;
  260. $1=_st(self._new())._signal();
  261. return $1;
  262. }, function($ctx1) {$ctx1.fill(self,"signal",{},globals.Error.klass)})},
  263. args: [],
  264. source: "signal\x0a\x09^ self new signal",
  265. messageSends: ["signal", "new"],
  266. referencedClasses: []
  267. }),
  268. globals.Error.klass);
  269. smalltalk.addMethod(
  270. smalltalk.method({
  271. selector: "signal:",
  272. protocol: 'instance creation',
  273. fn: function (aString){
  274. var self=this;
  275. return smalltalk.withContext(function($ctx1) {
  276. var $1;
  277. $1=_st(self._new())._signal_(aString);
  278. return $1;
  279. }, function($ctx1) {$ctx1.fill(self,"signal:",{aString:aString},globals.Error.klass)})},
  280. args: ["aString"],
  281. source: "signal: aString\x0a\x09^ self new\x0a\x09\x09signal: aString",
  282. messageSends: ["signal:", "new"],
  283. referencedClasses: []
  284. }),
  285. globals.Error.klass);
  286. smalltalk.addClass('Halt', globals.Error, [], 'Kernel-Exceptions');
  287. globals.Halt.comment="I am provided to support `Object>>#halt`.";
  288. smalltalk.addMethod(
  289. smalltalk.method({
  290. selector: "messageText",
  291. protocol: 'accessing',
  292. fn: function (){
  293. var self=this;
  294. return "Halt encountered";
  295. },
  296. args: [],
  297. source: "messageText\x0a\x09^ 'Halt encountered'",
  298. messageSends: [],
  299. referencedClasses: []
  300. }),
  301. globals.Halt);
  302. smalltalk.addMethod(
  303. smalltalk.method({
  304. selector: "signalerContextFrom:",
  305. protocol: 'accessing',
  306. fn: function (aContext){
  307. var self=this;
  308. return smalltalk.withContext(function($ctx1) {
  309. var $4,$3,$2,$1;
  310. $1=_st(aContext)._findContextSuchThat_((function(context){
  311. return smalltalk.withContext(function($ctx2) {
  312. $4=_st(context)._receiver();
  313. $ctx2.sendIdx["receiver"]=1;
  314. $3=_st($4).__eq_eq(self);
  315. $ctx2.sendIdx["=="]=1;
  316. $2=_st($3)._or_((function(){
  317. return smalltalk.withContext(function($ctx3) {
  318. return _st(_st(_st(context)._receiver()).__eq_eq(self._class()))._or_((function(){
  319. return smalltalk.withContext(function($ctx4) {
  320. return _st(_st(_st(context)._method())._selector()).__eq("halt");
  321. }, function($ctx4) {$ctx4.fillBlock({},$ctx3,3)})}));
  322. }, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)})}));
  323. $ctx2.sendIdx["or:"]=1;
  324. return _st($2)._not();
  325. }, function($ctx2) {$ctx2.fillBlock({context:context},$ctx1,1)})}));
  326. return $1;
  327. }, function($ctx1) {$ctx1.fill(self,"signalerContextFrom:",{aContext:aContext},globals.Halt)})},
  328. args: ["aContext"],
  329. source: "signalerContextFrom: aContext\x0a\x09\x22specialized version to find the proper context to open the debugger on.\x0a\x09This will find the first context whose method is no longer on `Halt` or \x0a\x09`Halt class` nor is `#halt` method itself.\x22\x0a\x09\x0a\x09^ aContext findContextSuchThat: [ :context |\x0a\x09\x09(context receiver == self \x0a\x09\x09or: [ (context receiver == self class) \x0a\x09\x09or: [ context method selector = #halt ]]) not ]",
  330. messageSends: ["findContextSuchThat:", "not", "or:", "==", "receiver", "class", "=", "selector", "method"],
  331. referencedClasses: []
  332. }),
  333. globals.Halt);
  334. smalltalk.addClass('JavaScriptException', globals.Error, ['exception'], 'Kernel-Exceptions');
  335. globals.JavaScriptException.comment="A JavaScriptException is thrown when a non-Smalltalk exception occurs while in the Smalltalk stack.\x0aSee `boot.js` `inContext()` and `BlockClosure >> on:do:`";
  336. smalltalk.addMethod(
  337. smalltalk.method({
  338. selector: "context:",
  339. protocol: 'accessing',
  340. fn: function (aMethodContext){
  341. var self=this;
  342. return smalltalk.withContext(function($ctx1) {
  343. self.context = aMethodContext;
  344. return self}, function($ctx1) {$ctx1.fill(self,"context:",{aMethodContext:aMethodContext},globals.JavaScriptException)})},
  345. args: ["aMethodContext"],
  346. source: "context: aMethodContext\x0a\x09\x22Set the context from the outside.\x0a\x09See boot.js `inContext()` exception handling\x22\x0a\x09\x0a\x09<self.context = aMethodContext>",
  347. messageSends: [],
  348. referencedClasses: []
  349. }),
  350. globals.JavaScriptException);
  351. smalltalk.addMethod(
  352. smalltalk.method({
  353. selector: "exception",
  354. protocol: 'accessing',
  355. fn: function (){
  356. var self=this;
  357. var $1;
  358. $1=self["@exception"];
  359. return $1;
  360. },
  361. args: [],
  362. source: "exception\x0a\x09^ exception",
  363. messageSends: [],
  364. referencedClasses: []
  365. }),
  366. globals.JavaScriptException);
  367. smalltalk.addMethod(
  368. smalltalk.method({
  369. selector: "exception:",
  370. protocol: 'accessing',
  371. fn: function (anException){
  372. var self=this;
  373. self["@exception"]=anException;
  374. return self},
  375. args: ["anException"],
  376. source: "exception: anException\x0a\x09exception := anException",
  377. messageSends: [],
  378. referencedClasses: []
  379. }),
  380. globals.JavaScriptException);
  381. smalltalk.addMethod(
  382. smalltalk.method({
  383. selector: "messageText",
  384. protocol: 'accessing',
  385. fn: function (){
  386. var self=this;
  387. return smalltalk.withContext(function($ctx1) {
  388. return 'JavaScript exception: ' + self["@exception"].toString();
  389. return self}, function($ctx1) {$ctx1.fill(self,"messageText",{},globals.JavaScriptException)})},
  390. args: [],
  391. source: "messageText\x0a\x09<return 'JavaScript exception: ' + self[\x22@exception\x22].toString()>",
  392. messageSends: [],
  393. referencedClasses: []
  394. }),
  395. globals.JavaScriptException);
  396. smalltalk.addMethod(
  397. smalltalk.method({
  398. selector: "on:",
  399. protocol: 'instance creation',
  400. fn: function (anException){
  401. var self=this;
  402. return smalltalk.withContext(function($ctx1) {
  403. var $2,$3,$1;
  404. $2=self._new();
  405. _st($2)._exception_(anException);
  406. $3=_st($2)._yourself();
  407. $1=$3;
  408. return $1;
  409. }, function($ctx1) {$ctx1.fill(self,"on:",{anException:anException},globals.JavaScriptException.klass)})},
  410. args: ["anException"],
  411. source: "on: anException\x0a\x09^ self new\x0a\x09\x09exception: anException;\x0a\x09\x09yourself",
  412. messageSends: ["exception:", "new", "yourself"],
  413. referencedClasses: []
  414. }),
  415. globals.JavaScriptException.klass);
  416. smalltalk.addMethod(
  417. smalltalk.method({
  418. selector: "on:context:",
  419. protocol: 'instance creation',
  420. fn: function (anException,aMethodContext){
  421. var self=this;
  422. return smalltalk.withContext(function($ctx1) {
  423. var $2,$3,$1;
  424. $2=self._new();
  425. _st($2)._exception_(anException);
  426. _st($2)._context_(aMethodContext);
  427. $3=_st($2)._yourself();
  428. $1=$3;
  429. return $1;
  430. }, function($ctx1) {$ctx1.fill(self,"on:context:",{anException:anException,aMethodContext:aMethodContext},globals.JavaScriptException.klass)})},
  431. args: ["anException", "aMethodContext"],
  432. source: "on: anException context: aMethodContext\x0a\x09^ self new\x0a\x09\x09exception: anException;\x0a\x09\x09context: aMethodContext;\x0a\x09\x09yourself",
  433. messageSends: ["exception:", "new", "context:", "yourself"],
  434. referencedClasses: []
  435. }),
  436. globals.JavaScriptException.klass);
  437. smalltalk.addClass('MessageNotUnderstood', globals.Error, ['message', 'receiver'], 'Kernel-Exceptions');
  438. globals.MessageNotUnderstood.comment="This exception is provided to support `Object>>doesNotUnderstand:`.";
  439. smalltalk.addMethod(
  440. smalltalk.method({
  441. selector: "message",
  442. protocol: 'accessing',
  443. fn: function (){
  444. var self=this;
  445. var $1;
  446. $1=self["@message"];
  447. return $1;
  448. },
  449. args: [],
  450. source: "message\x0a\x09^ message",
  451. messageSends: [],
  452. referencedClasses: []
  453. }),
  454. globals.MessageNotUnderstood);
  455. smalltalk.addMethod(
  456. smalltalk.method({
  457. selector: "message:",
  458. protocol: 'accessing',
  459. fn: function (aMessage){
  460. var self=this;
  461. self["@message"]=aMessage;
  462. return self},
  463. args: ["aMessage"],
  464. source: "message: aMessage\x0a\x09message := aMessage",
  465. messageSends: [],
  466. referencedClasses: []
  467. }),
  468. globals.MessageNotUnderstood);
  469. smalltalk.addMethod(
  470. smalltalk.method({
  471. selector: "messageText",
  472. protocol: 'accessing',
  473. fn: function (){
  474. var self=this;
  475. return smalltalk.withContext(function($ctx1) {
  476. var $1;
  477. $1=_st(_st(_st(self._receiver())._asString()).__comma(" does not understand #")).__comma(_st(self._message())._selector());
  478. $ctx1.sendIdx[","]=1;
  479. return $1;
  480. }, function($ctx1) {$ctx1.fill(self,"messageText",{},globals.MessageNotUnderstood)})},
  481. args: [],
  482. source: "messageText\x0a\x09^ self receiver asString, ' does not understand #', self message selector",
  483. messageSends: [",", "asString", "receiver", "selector", "message"],
  484. referencedClasses: []
  485. }),
  486. globals.MessageNotUnderstood);
  487. smalltalk.addMethod(
  488. smalltalk.method({
  489. selector: "receiver",
  490. protocol: 'accessing',
  491. fn: function (){
  492. var self=this;
  493. var $1;
  494. $1=self["@receiver"];
  495. return $1;
  496. },
  497. args: [],
  498. source: "receiver\x0a\x09^ receiver",
  499. messageSends: [],
  500. referencedClasses: []
  501. }),
  502. globals.MessageNotUnderstood);
  503. smalltalk.addMethod(
  504. smalltalk.method({
  505. selector: "receiver:",
  506. protocol: 'accessing',
  507. fn: function (anObject){
  508. var self=this;
  509. self["@receiver"]=anObject;
  510. return self},
  511. args: ["anObject"],
  512. source: "receiver: anObject\x0a\x09receiver := anObject",
  513. messageSends: [],
  514. referencedClasses: []
  515. }),
  516. globals.MessageNotUnderstood);
  517. smalltalk.addClass('NonBooleanReceiver', globals.Error, ['object'], 'Kernel-Exceptions');
  518. globals.NonBooleanReceiver.comment="NonBooleanReceiver exceptions may be thrown when executing inlined methods such as `#ifTrue:` with a non boolean receiver.";
  519. smalltalk.addMethod(
  520. smalltalk.method({
  521. selector: "object",
  522. protocol: 'accessing',
  523. fn: function (){
  524. var self=this;
  525. var $1;
  526. $1=self["@object"];
  527. return $1;
  528. },
  529. args: [],
  530. source: "object\x0a\x09^ object",
  531. messageSends: [],
  532. referencedClasses: []
  533. }),
  534. globals.NonBooleanReceiver);
  535. smalltalk.addMethod(
  536. smalltalk.method({
  537. selector: "object:",
  538. protocol: 'accessing',
  539. fn: function (anObject){
  540. var self=this;
  541. self["@object"]=anObject;
  542. return self},
  543. args: ["anObject"],
  544. source: "object: anObject\x0a\x09object := anObject",
  545. messageSends: [],
  546. referencedClasses: []
  547. }),
  548. globals.NonBooleanReceiver);
  549. smalltalk.addClass('PackageCommitError', globals.Error, [], 'Kernel-Exceptions');
  550. globals.PackageCommitError.comment="I get signaled when an attempt to commit a package has failed.";
  551. });