// Copyright 2020 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.// Flags: --allow-natives-syntax// Flags: --no-enable-experimental-regexp-engine// We shouldn't recognize the 'l' flag.assertThrows(()=>newRegExp("asdf","l"),SyntaxError)assertThrows(()=>newRegExp("123|xyz","l"),SyntaxError)assertThrows(()=>newRegExp("((a*)*)*","yls"),SyntaxError)assertThrows(()=>newRegExp("((a*)*)*\1","l"),SyntaxError)// RegExps shouldn't have a 'linear' property.assertFalse(RegExp.prototype.hasOwnProperty('linear'));assertFalse(/123/.hasOwnProperty('linear'));