$ git for-each-ref --sort=authordate --format '%(authordate:relative) %(refname:short)' refs/heads
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
#include "js_api.h" | |
// Sometimes you want to access the js "this" value in a function | |
// function Point(x, y) { this.x = x; this.y = y; } | |
bool point_constructor(js_context* C) { | |
js_set(C, 0, "x", 1); // this.x = arguments[0] | |
js_set(C, 0, "y", 2); // this.y = arguments[1] | |
return true; // js returns undefined, but C returns true meaning no error. | |
} |