Skip to content

Instantly share code, notes, and snippets.

@rightfold
Created March 1, 2015 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rightfold/cdb77992ec3109a413b0 to your computer and use it in GitHub Desktop.
Save rightfold/cdb77992ec3109a413b0 to your computer and use it in GitHub Desktop.
// ==ClosureCompiler==
// @compilation_level ADVANCED_OPTIMIZATIONS
// @output_file_name default.js
// @formatting pretty_print
// ==/ClosureCompiler==
/**
* @constructor
*/
function Point(x, y) {
this.x = x;
this.y = y;
}
for (var x = 0; x < 10; ++x) {
for (var y = 0; y < 10; ++y) {
var p = new Point(x, y);
console.log(p);
}
}
function a() {
var d = b;
this.x = c;
this.y = d;
}
for (var c = 0;10 > c;++c) {
for (var b = 0;10 > b;++b) {
console.log(new a);
}
}
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment