use double quotes instead of single

This commit is contained in:
Sebastian McKenzie 2015-01-30 21:50:31 +11:00
parent f5ccb9c0ba
commit a9ff73b4f6

View File

@ -259,7 +259,7 @@ ReplaceSupers.prototype.specHandle = function (getThisReference, node, parent) {
computed = node.computed; computed = node.computed;
} else if (t.isAssignmentExpression(node)) { } else if (t.isAssignmentExpression(node)) {
if (!t.isIdentifier(node.left.object, { name: "super" })) return; if (!t.isIdentifier(node.left.object, { name: "super" })) return;
if (methodNode.kind !== 'set') return; if (methodNode.kind !== "set") return;
thisReference = getThisReference(); thisReference = getThisReference();
// super.name = "val"; -> _set(Object.getPrototypeOf(ClassName.prototype), "name", this); // super.name = "val"; -> _set(Object.getPrototypeOf(ClassName.prototype), "name", this);