UNPKG

6to5-core

Version:

Turn ES6 code into readable vanilla ES5 with source maps

9 lines (7 loc) 261 B
"use strict"; exports.MethodDefinition = exports.Property = function (node, parent, scope, context, file) { if (node.kind === "set" && node.value.params.length !== 1) { throw file.errorWithNode(node.value, "Setters must have only one parameter"); } };