deprecate some playground transformers

This commit is contained in:
Sebastian McKenzie 2015-03-14 01:52:59 +11:00
parent 75dda10057
commit 2c05303813
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ build(exports, {
},
build(node, file) {
console.error("The memoization operator is deprecated and will be removed in 5.0.0");
return t.unaryExpression(
"!",
t.callExpression(

View File

@ -20,6 +20,8 @@ export function MethodDefinition(node, parent, scope, file) {
if (node.kind !== "memo") return;
node.kind = "get";
console.error("Object getter memoization is deprecated and will be removed in 5.0.0");
var value = node.value;
t.ensureBlock(value);