Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

reducing allocation of pause objects

  • Loading branch information...
commit 6193aae28b892cf786a8fa1c64303f2530450d99 1 parent e7d8fb4
Danny Yoo authored
Showing with 5 additions and 3 deletions.
  1. +4 −2 js-assembler/runtime-src/runtime.js
  2. +1 −1  version.rkt
View
6 js-assembler/runtime-src/runtime.js
@@ -488,12 +488,14 @@
var Pause = function(onPause) {
// onPause: MACHINE -> void
- this.onPause = onPause || function(MACHINE) {};
+ this.onPause = onPause;
};
var PAUSED = false;
+ var THE_SINGLETON_PAUSE = new Pause();
var PAUSE = function(onPause) {
- PAUSED = new Pause(onPause);
+ PAUSED = THE_SINGLETON_PAUSE;
+ THE_SINGLETON_PAUSE.onPause = onPause;
return;
};
View
2  version.rkt
@@ -6,4 +6,4 @@
(provide version)
(: version String)
-(define version "1.218")
+(define version "1.219")
Please sign in to comment.
Something went wrong with that request. Please try again.