-
-
Save rightfold/cdb77992ec3109a413b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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