github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/webapp/dynamic-components/templates/wpt-env-flags.js (about) 1 /** 2 * Copyright 2018 The WPT Dashboard Project. All rights reserved. 3 * Use of this source code is governed by a BSD-style license that can be 4 * found in the LICENSE file. 5 */ 6 7 /* 8 WPTEnvironmentFlags is a class containing default enviroment wpt.fyi 9 feature flags. 10 */ 11 const WPTEnvironmentFlags = class WPTEnvironmentFlags {} 12 {{range .Flags}} 13 Object.defineProperty( 14 WPTEnvironmentFlags, 15 '{{.Name}}', 16 { 17 writable: false, 18 configurable: false, 19 value: {{.Enabled}}, 20 } 21 ); 22 {{end}} 23 24 export { WPTEnvironmentFlags };