mirror of
https://github.com/tc39/test262.git
synced 2025-10-17 13:59:03 +02:00
- 15.10.2.15-3-1 and 15.10.2.15-3-2 are both invalid (U+002F (SOLIDUS) instead of U+005C (REVERSE SOLIDUS) was used to start an escape sequence). - 15.10.4.1-2 and 15.10.2.2-1 are identical tests, delete the latter. - Update tests to avoid using runTestCase() function. - Update multiple test infos to point to correct algorithm step (CharacterRange step 6 instead of step 1).
18 lines
656 B
JavaScript
18 lines
656 B
JavaScript
// Copyright (c) 2012 Ecma International. All rights reserved.
|
|
// Ecma International makes this code available under the terms and conditions set
|
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
|
// "Use Terms"). Any redistribution of this code must retain the above
|
|
// copyright and this notice and otherwise comply with the Use Terms.
|
|
|
|
/*---
|
|
es5id: 15.10.2.15-6-1
|
|
description: >
|
|
Pattern - SyntaxError was thrown when one character in CharSet 'A'
|
|
greater than one character in CharSet 'B' (15.10.2.15
|
|
CharacterRange step 6)
|
|
---*/
|
|
|
|
assert.throws(SyntaxError, function() {
|
|
var regExp = new RegExp("^[z-a]$");
|
|
});
|