build/generate_browserjs.js
function convertEntry(entry) {
	entry.description = entry.desc
	delete entry.desc

	if (entry.values) {
		entry.values.forEach(v => {
			v.description = v.desc
			delete v.desc

			if (v.browsers) {
				if (v.browsers === 'all') {
					delete v.browsers
				} else {
					v.browsers = entry.browsers.split(',')
					if (v.browsers.length === 1 && v.browsers[0] === "all") {
						delete v.browsers
					}
				}
			}
		})
	}

	if (entry.browsers) {
		if (entry.browsers === 'all') {
			delete entry.browsers
		} else {
			entry.browsers = entry.browsers.split(',')
		}
	}

	if (entry.restriction) {
		entry.restrictions = entry.restriction.split(',').map((s) => { return s.trim(); });
		if (entry.restrictions.length === 1 && entry.restrictions[0] === "none") {
			delete entry.restrictions
		}
	} else {
		delete entry.restrictions
	}
	delete entry.restriction

	if (entry.status) {
		entry.status = expandEntryStatus(entry.status)
	}
}
function convertEntry(entry) {
	entry.description = entry.desc
	delete entry.desc

	if (entry.values) {
		entry.values.forEach(v => {
			v.description = v.desc
			delete v.desc

			if (v.browsers) {
				if (v.browsers === 'all') {
					delete v.browsers
				} else {
					v.browsers = entry.browsers.split(',')
					if (v.browsers.length === 1 && v.browsers[0] === "all") {
						delete v.browsers
					}
				}
			}
		})
	}

	if (entry.browsers) {
		if (entry.browsers === 'all') {
			delete entry.browsers
		} else {
			entry.browsers = entry.browsers.split(',')
		}
	}

	if (entry.restriction) {
		entry.restrictions = entry.restriction.split(',').map((s) => { return s.trim(); });
		if (entry.restrictions.length === 1 && entry.restrictions[0] === "none") {
			delete entry.restrictions
		}
	} else {
		delete entry.restrictions
	}
	delete entry.restriction

	if (entry.status) {
		entry.status = expandEntryStatus(entry.status)
	}
}
function convertEntry ( entry ) { entry . description = entry . desc delete entry . desc if ( entry . values ) { entry . values . forEach ( v => { v . description = v . desc delete v . desc if ( v . browsers ) { if ( v . browsers === 'all' ) { delete v . browsers } else { v . browsers = entry . browsers . split ( ',' ) if ( v . browsers . length === 1 && v . browsers [ 0 ] === "all" ) { delete v . browsers } } } } ) } if ( entry . browsers ) { if ( entry . browsers === 'all' ) { delete entry . browsers } else { entry . browsers = entry . browsers . split ( ',' ) } } if ( entry . restriction ) { entry . restrictions = entry . restriction . split ( ',' ) . map ( ( s ) => { return s . trim ( ) ; } ) ; if ( entry . restrictions . length === 1 && entry . restrictions [ 0 ] === "none" ) { delete entry . restrictions } } else { delete entry . restrictions } delete entry . restriction if ( entry . status ) { entry . status = expandEntryStatus ( entry . status ) } }
Temporarily convert old entry to new entry
Todo@Pine: Change MDN data generation so this yields new entry
Temporarily convert old entry to new entry Todo