Here's a simple Hello World actor. It is a global actor (not associated with a given browser tab).
let protocol = require("devtools/server/protocol");
let {method, Arg, Option, RetVal} = protocol;
#!/bin/sh | |
set -x | |
control_c() | |
# run if user hits control-c | |
{ | |
echo -en "\n*** Ouch! Exiting ***\n" | |
exit $? | |
} |
// Here is a proposal for minimalist JavaScript classes(?), that does not | |
// introduces any additional syntax to the language, instead it standardizes | |
// approach already used by majority of JS frameworks today. | |
// !!! What is a PROBLEM!!! | |
function Dog(name) { | |
// Classes are for creating instances, calling them without `new` changes | |
// behavior, which in majority cases you need to handle, so you end up with | |
// additional boilerplate. |