From 4859a25876046192beec26a5d39518f8395c3d5b Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 29 Sep 2014 03:43:37 +1000 Subject: [PATCH] additional helper templates --- lib/6to5/templates/function-return-obj.js | 3 +++ lib/6to5/templates/obj-key-set.js | 1 + 2 files changed, 4 insertions(+) create mode 100644 lib/6to5/templates/function-return-obj.js create mode 100644 lib/6to5/templates/obj-key-set.js diff --git a/lib/6to5/templates/function-return-obj.js b/lib/6to5/templates/function-return-obj.js new file mode 100644 index 0000000000..2ccd4cd89c --- /dev/null +++ b/lib/6to5/templates/function-return-obj.js @@ -0,0 +1,3 @@ +(function (obj) { + return obj; +})(OBJECT) diff --git a/lib/6to5/templates/obj-key-set.js b/lib/6to5/templates/obj-key-set.js new file mode 100644 index 0000000000..3f37b446d3 --- /dev/null +++ b/lib/6to5/templates/obj-key-set.js @@ -0,0 +1 @@ +obj[KEY] = VALUE;